We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52c8df7 commit bc8a95fCopy full SHA for bc8a95f
1 file changed
tuf/repository_lib.py
@@ -1640,7 +1640,7 @@ def build_merkle_tree(fileinfodict):
1640
# leaf contains snapshot information for a single metadata file.
1641
leaves = []
1642
nodes = []
1643
- for name, contents in fileinfodict.items():
+ for name, contents in sorted(fileinfodict.items()):
1644
if name.endswith(".json"):
1645
name = os.path.splitext(name)[0]
1646
leaves.append(Leaf(name, contents))
0 commit comments