diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-01-14 19:56:58 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-01-15 00:14:31 +0100 |
commit | fa4ec80cbd367f3a9923dbd1a8b3387f21deb153 (patch) | |
tree | e48687d7eae8f13757a0fbe593738c4bfe0a6319 /bin/reproducible_html_packages.py | |
parent | 507c17c70c377331bc26f012da7e6734c1501ffd (diff) | |
download | jenkins.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-x | bin/reproducible_html_packages.py | 2 |
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: |