ostbuild: Sort keys in JSON snapshot

This commit is contained in:
Colin Walters 2012-02-27 19:28:13 -05:00
parent b8e3f622f1
commit d2f298488f
1 changed files with 2 additions and 2 deletions

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()))