forked from openkylin/platform_build
Sort the results of findleaves again.
Commitd36e945
changed findleaves.py to sort the output files so that the order is deterministic and won't cause spurious build errors when files happen to be listed (and hence read) in different order on e.g. add/remove the makefiles. This correction broke after commit4820a94
because the conversion to a set with set() in order to remove duplicates came after sort() and potentially altered the order of the elements. This commit fixes makes sure findleaves.py is guaranteed to return a sorted filename list without duplicates. Change-Id: Ifd96d04d45641fe43d4cc4739f78a2d4d25cc212
This commit is contained in:
parent
7d9fe51747
commit
58e52b434b
|
@ -89,9 +89,9 @@ def main(argv):
|
|||
usage()
|
||||
dirlist = argv[i:-1]
|
||||
filename = argv[-1]
|
||||
results = perform_find(mindepth, prune, dirlist, filename)
|
||||
results = list(set(perform_find(mindepth, prune, dirlist, filename)))
|
||||
results.sort()
|
||||
for r in set(results):
|
||||
for r in results:
|
||||
print r
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in New Issue