summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_packages.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-01-14 19:56:58 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-15 00:14:31 +0100
commitfa4ec80cbd367f3a9923dbd1a8b3387f21deb153 (patch)
treee48687d7eae8f13757a0fbe593738c4bfe0a6319 /bin/reproducible_html_packages.py
parent507c17c70c377331bc26f012da7e6734c1501ffd (diff)
downloadjenkins.debian.net-fa4ec80cbd367f3a9923dbd1a8b3387f21deb153.tar.xz
reproducible: add a pkg_has_buildinfo common function, to avoid code duplication
Diffstat (limited to 'bin/reproducible_html_packages.py')
-rwxr-xr-xbin/reproducible_html_packages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index f3f89244..49723944 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -92,7 +92,7 @@ def gen_extra_links(package, version):
default_view = url
else:
log.debug('debbindiff not detetected at ' + dbd)
- if os.access(buildinfo, os.R_OK):
+ if pkg_has_buildinfo(package, version):
url = BUILDINFO_URI + '/' + package + '_' + strip_epoch(version) + '_amd64.buildinfo'
links += '<a href="' + url + '" target="main">buildinfo</a>\n'
if not default_view: