Mercurial > hg > orthanc
diff Resources/EmbedResources.py @ 3587:76b3228f99b0
Sort file lists
to make builds reproducible in spite of
nondeterministic filesystem readdir order.
See https://reproducible-builds.org/ for why this matters.
author | Bernhard M. Wiedemann <bernhard+hgcommit@lsmod.de> |
---|---|
date | Thu, 05 Dec 2019 16:21:41 +0100 |
parents | e60e194531e5 |
children | 94f4a18a79cc |
line wrap: on
line diff
--- a/Resources/EmbedResources.py Mon Dec 02 11:32:21 2019 +0100 +++ b/Resources/EmbedResources.py Thu Dec 05 16:21:41 2019 +0100 @@ -101,6 +101,8 @@ # The resource is a directory: Recursively explore its files content = {} for root, dirs, files in os.walk(pathName): + dirs.sort() + files.sort() base = os.path.relpath(root, pathName) # Fix issue #24 (Build fails on OSX when directory has .DS_Store files):