diff options
author | William Blevins <wblevins001@gmail.com> | 2016-09-18 04:19:52 (GMT) |
---|---|---|
committer | William Blevins <wblevins001@gmail.com> | 2016-09-18 04:19:52 (GMT) |
commit | 8df60cf25428207781fda6ad66c06325556a09a0 (patch) | |
tree | b8852b4999d761b2ca0960a81beee8494ff332f5 /src | |
parent | 2de3e0c670a7f172cd6753679baede25fcd44963 (diff) | |
download | SCons-8df60cf25428207781fda6ad66c06325556a09a0.zip SCons-8df60cf25428207781fda6ad66c06325556a09a0.tar.gz SCons-8df60cf25428207781fda6ad66c06325556a09a0.tar.bz2 |
Sorting RPM tarball sources to correct nondeterminism in ordering.
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/SCons/Tool/packaging/rpm.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine/SCons/Tool/packaging/rpm.py b/src/engine/SCons/Tool/packaging/rpm.py index a132555..99124ed 100644 --- a/src/engine/SCons/Tool/packaging/rpm.py +++ b/src/engine/SCons/Tool/packaging/rpm.py @@ -95,6 +95,8 @@ def collectintargz(target, source, env): # find the .spec file for rpm and add it since it is not necessarily found # by the FindSourceFiles function. sources.extend( [s for s in source if str(s).rfind('.spec')!=-1] ) + # sort to keep sources from changing order across builds + sources.sort() # as the source contains the url of the source package this rpm package # is built from, we extract the target name |