dirnode.py: when doing deep-traverse, walk each directory in alphabetical order, to make things like 'manifest' more predictable

This commit is contained in:
Brian Warner 2009-03-12 23:50:46 -07:00
parent a18f8d4cc7
commit 1a741fdb03

View File

@ -526,7 +526,7 @@ class NewDirectoryNode:
# in the nodecache) seem to consume about 2000 bytes.
dirkids = []
filekids = []
for name, (child, metadata) in children.iteritems():
for name, (child, metadata) in sorted(children.iteritems()):
verifier = child.get_verify_cap()
# allow LIT files (for which verifier==None) to be processed
if (verifier is not None) and (verifier in found):