summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-10-09 12:13:09 +0100
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-11-04 12:40:54 +0000
commit76efe9188bdaff089106a8ae4bca2aef885c33d3 (patch)
tree13c74b1651dfc6d1662cc7e8ee1f2bdee7da0659
parent076a37ebf423e8f637126c8bb2cee237dd30ab80 (diff)
downloadimport-76efe9188bdaff089106a8ae4bca2aef885c33d3.tar.gz
Pretty print the lorry output
-rwxr-xr-ximport/pip.to_lorry2
1 files changed, 1 insertions, 1 deletions
diff --git a/import/pip.to_lorry b/import/pip.to_lorry
index 10c9da7..22de654 100755
--- a/import/pip.to_lorry
+++ b/import/pip.to_lorry
@@ -87,7 +87,7 @@ def make_tarball_lorry(name, url):
if compression:
lorry['compression'] = compression
- return "%s-tarball: { %s }" % (name, json.dumps(lorry))
+ return "%s-tarball: %s" % (name, json.dumps(lorry, indent=4, sort_keys=True))
def ask_user(client, xs, fn, prompt='--> '):
for n, x in enumerate(xs, 1):