ostbuild: Sort keys in JSON snapshot

This commit is contained in:
Colin Walters committed 2012-03-13 10:39:25 -04:00
1 parent b8e3f622f1
commit d2f298488f
1 file changed
+2 -2
+2 -2
View File
@@ -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()))