summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_packages.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-05-30 02:34:04 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-01 16:39:12 +0200
commit03480336a8402a09d8cafff8ebaa203f91bb6043 (patch)
tree74dffb5c57b609f912dd671697d5081809f8d15b /bin/reproducible_html_packages.py
parent427e2f31a1dcbc3b6a6c968d4d4dbdf217ea7a99 (diff)
downloadjenkins.debian.net-03480336a8402a09d8cafff8ebaa203f91bb6043.tar.xz
reproducible: html_packages, breakages: use that pkg_has_rbuild function. Gain support for .gz rbuilds for free
Diffstat (limited to 'bin/reproducible_html_packages.py')
-rwxr-xr-xbin/reproducible_html_packages.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 9f34241e..10f4797c 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -112,8 +112,6 @@ def gen_status_link_icon(status, icon, suite, arch):
def gen_extra_links(package, version, suite, arch, status):
eversion = strip_epoch(version)
notes = NOTES_PATH + '/' + package + '_note.html'
- rbuild = RBUILD_PATH + '/' + suite + '/' + arch + '/' + package + '_' + \
- eversion + '.rbuild.log'
buildinfo = BUILDINFO_PATH + '/' + suite + '/' + arch + '/' + package + \
'_' + eversion + '_amd64.buildinfo'
dbd = DBD_PATH + '/' + suite + '/' + arch + '/' + package + '_' + \
@@ -147,12 +145,12 @@ def gen_extra_links(package, version, suite, arch, status):
default_view = url
else:
log.debug('buildinfo not detected at ' + buildinfo)
- if os.access(rbuild, os.R_OK):
+ rbuild = pkg_has_rbuild(package, version, suite, arch)
+ if rbuild: # being a tuple (rbuild path, size), empty if non_existant
url = RBUILD_URI + '/' + suite + '/' + arch + '/' + package + '_' + \
- eversion + '.rbuild.log'
- log_size = os.stat(rbuild).st_size
+ eversion + '.rbuild.log' # apache ignores the trailing .gz
links +='<a href="' + url + '" target="main">rbuild (' + \
- sizeof_fmt(log_size) + ')</a>\n'
+ sizeof_fmt(rbuild[1]) + ')</a>\n'
if not default_view:
default_view = url
elif status not in ('untested', 'blacklisted'):