diff options
author | 2016-09-23 13:12:33 -0700 | |
---|---|---|
committer | 2016-09-23 14:21:38 -0700 | |
commit | 567c5d0f9590b101ae4660b484dfd31172c288c9 (patch) | |
tree | 1f2ae3bfad7ded3ab3b2d1dd81d32ffab9994159 | |
parent | df71efe378937e18f8783229a50f5e010fd634c2 (diff) |
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
-rwxr-xr-x | tools/fat16copy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/fat16copy.py b/tools/fat16copy.py index 77500eb723..f49c4fec08 100755 --- a/tools/fat16copy.py +++ b/tools/fat16copy.py @@ -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: |