summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-01-14 17:50:58 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-14 17:56:34 +0100
commit0fc373c7d24fa73bb1b5c53610f63331d9930f42 (patch)
treeba6f37e82a4acc3eaa2eec64411e02ab0c4321e2
parenta8f4e2aa4a4f310300dbb631f43d34849061ac7e (diff)
downloadjenkins.debian.net-0fc373c7d24fa73bb1b5c53610f63331d9930f42.tar.xz
pbuilder: common.py: strip out epoch also when checking for buildinfo while linking icon <-> status
-rwxr-xr-xbin/reproducible_common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 773b199e..d1004944 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -213,7 +213,8 @@ def join_status_icon(status, package=None, version=None):
'not_for_us': 'weather-few-clouds-night.png',
'blacklisted': 'error.png'}
if status == 'unreproducible':
- if os.access(BUILDINFO_PATH + '/' + str(package) + '_' + str(version) + '_amd64.buildinfo', os.R_OK):
+ if os.access(BUILDINFO_PATH + '/' + str(package) + '_' + \
+ strip_epoch(str(version)) + '_amd64.buildinfo', os.R_OK):
status = 'FTBR_with_buildinfo'
else:
status = 'FTBR'