ostbuild: Sort keys in JSON snapshot
This commit is contained in:
1 parent
b8e3f622f1
commit
d2f298488f
1 file changed
+2
-2
@@ -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()))
|
||||
|
||||
|
||||
Reference in new issue
Block a user