mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 00:53:33 +08:00
metadata: sort json output
ensures the files don't change arbitrarily
This commit is contained in:
@@ -74,7 +74,7 @@ for metadata_type_tuple in args.type:
|
||||
component_general['metadataTypes'] = metadata_types
|
||||
|
||||
with open(filename, 'w') as outfile:
|
||||
json.dump(component_general, outfile)
|
||||
json.dump(component_general, outfile, sort_keys=True)
|
||||
|
||||
if compress:
|
||||
save_compressed(filename)
|
||||
|
||||
Reference in New Issue
Block a user