Source: wims-help
Version: 4.01-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: fileordering
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that wims-help could not be built reproducibly as the `find` call
iterates in (non-determinstic) filesystem ordering.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/make-copyright.py 2016-10-08 10:41:54.066419820 +0100
--- b/debian/make-copyright.py 2016-10-08 10:44:22.168251923 +0100
@@ -36,7 +36,7 @@
indexes=Popen("find %s -type f -name INDEX" %path, shell=True,
stdout=PIPE).communicate()[0]
indexes=indexes.strip().split("\n")
files=""
- for i in indexes:
+ for i in sorted(indexes):
d=os.path.dirname(i)
f=os.path.basename(i)
author=Popen("sed -n 's/^author=\\(.*\\)/\\1/ p' %s" %i, shell=True,
stdout=PIPE).communicate()[0].strip()