summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-10-09 17:17:19 +0100
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-11-04 12:40:55 +0000
commiteea21f997745f170aa0e66f8109fa0784165ec71 (patch)
tree9c4d36a4d81528cf9be153baedb8213d429b2a3c
parent56cc5a5c2f239f3e3ff8e02a5f825f8b9ec699fa (diff)
downloadimport-eea21f997745f170aa0e66f8109fa0784165ec71.tar.gz
Tarball should have -tarball suffix
-rwxr-xr-ximport/pip.to_lorry3
1 files changed, 2 insertions, 1 deletions
diff --git a/import/pip.to_lorry b/import/pip.to_lorry
index 2b80857..e10fc29 100755
--- a/import/pip.to_lorry
+++ b/import/pip.to_lorry
@@ -76,7 +76,8 @@ def make_tarball_lorry(name, url):
if compression:
lorry['compression'] = compression
- return json.dumps({name.lower(): lorry}, indent=4, sort_keys=True)
+ return json.dumps({name.lower() + "-tarball": lorry},
+ indent=4, sort_keys=True)
def ask_user(client, xs, fn, prompt='--> '):
for n, x in enumerate(xs, 1):