[ostree] ostbuild: Sort keys in JSON snapshot



commit d2f298488fe8772717033fce22ea8760259a7825
Author: Colin Walters <walters verbum org>
Date:   Mon Feb 27 19:28:13 2012 -0500

    ostbuild: Sort keys in JSON snapshot

 src/ostbuild/pyostbuild/builtin_resolve.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/builtin_resolve.py b/src/ostbuild/pyostbuild/builtin_resolve.py
index e6f680c..224f1a2 100755
--- a/src/ostbuild/pyostbuild/builtin_resolve.py
+++ b/src/ostbuild/pyostbuild/builtin_resolve.py
@@ -223,9 +223,9 @@ class OstbuildResolve(builtins.Builtin):
                                patch)
             dest = os.path.join(patchdir, patch)
             shutil.copy(src, dest)
-        
+
         f = open(out_snapshot, 'w')
-        json.dump(self.manifest, f, indent=4)
+        json.dump(self.manifest, f, indent=4, sort_keys=True)
         f.close()
         print "Created: %s, %d patches" % (out_snapshot, len(all_patches.keys()))
         



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]