fat16copy: Sort new directory entries.

Sort the entries returned by os.listdir to give a consistent ordering
across build.

Bug: None
Test: `make dist`

(cherry picked from commit ef34e5dca216e61fd81020e818f247f6ce47d26e)

Change-Id: I2f80889684f108208f07e13d725acaa7bc0ab099
This commit is contained in:
Alex Deymo 2016-09-23 13:12:33 -07:00
parent df71efe378
commit 567c5d0f95
1 changed files with 1 additions and 1 deletions

View File

@ -787,7 +787,7 @@ def add_item(directory, item):
if len(base) == 0:
base = os.path.basename(item[:-1])
sub = directory.new_subdirectory(base)
for next_item in os.listdir(item):
for next_item in sorted(os.listdir(item)):
add_item(sub, os.path.join(item, next_item))
else:
with open(item, 'rb') as f: