Sort input file list

so that calibre/plugins/lzma_binding.so builds in a reproducible way
in spite of indeterministic filesystem readdir order
and http://bugs.python.org/issue30461

See https://reproducible-builds.org/ for why this is good.
This commit is contained in:
Bernhard M. Wiedemann 2019-07-01 14:36:14 +02:00
parent 745a3ef952
commit 53298f87ff
No known key found for this signature in database
GPG Key ID: 49360B3B1DFBA164

View File

@ -88,7 +88,7 @@ def expand_file_list(items, is_paths=True):
ans.extend(expand_file_list(item, is_paths=is_paths))
else:
if '*' in item:
ans.extend(expand_file_list(glob.glob(os.path.join(SRC, item)), is_paths=is_paths))
ans.extend(expand_file_list(sorted(glob.glob(os.path.join(SRC, item))), is_paths=is_paths))
else:
item = [item]
if is_paths: