From d783704bae9e014b48a536e10a89a280ba102a65 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Fri, 9 Mar 2018 21:56:26 +0100 Subject: [PATCH] Sort qrc input file list so that yubioath-desktop packages build in a reproducible way in spite of indeterministic filesystem readdir order See https://reproducible-builds.org/ for why this is good. Note: With the current pretty flat resource layout, dirs has at most 1 entry so would not need to be sorted, but OTOH sorting this will be very fast. --- build_qrc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_qrc.py b/build_qrc.py index 455b4eda..01b754f7 100755 --- a/build_qrc.py +++ b/build_qrc.py @@ -18,6 +18,8 @@ def build_qrc(resources): yield '' for d in resources: for root, dirs, files in os.walk(d): + dirs.sort() + files.sort() for f in files: yield '{}'.format(os.path.join(root, f)) yield ''