Mercurial > hg > orthanc
diff Plugins/Samples/WebSkeleton/Framework/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 | 4e43e67f8ecf |
children | 94f4a18a79cc |
line wrap: on
line diff
--- a/Plugins/Samples/WebSkeleton/Framework/EmbedResources.py Mon Dec 02 11:32:21 2019 +0100 +++ b/Plugins/Samples/WebSkeleton/Framework/EmbedResources.py Thu Dec 05 16:21:41 2019 +0100 @@ -74,6 +74,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) for f in files: if f.find('~') == -1: # Ignore Emacs backup files