diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-06-17 06:34:14 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-07-05 14:01:20 +0200 |
commit | b506b617e2d6da952f3a22f1b7d1840fe269679d (patch) | |
tree | 9a1150c4c5a1bdfa6226bcdb7ec041cac028e09f /bin | |
parent | eaf007dc31c6171c5f44da3c508dedfeb50d1a84 (diff) | |
download | jenkins.debian.net-b506b617e2d6da952f3a22f1b7d1840fe269679d.tar.xz |
reproducible: html_packages: link the build2 and the diff
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_packages.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index 72b53f63..2279fc5e 100755 --- a/bin/reproducible_html_packages.py +++ b/bin/reproducible_html_packages.py @@ -111,13 +111,15 @@ def gen_status_link_icon(status, icon, suite, arch): def link_buildlogs(package, eversion, suite, arch): html = '' - path = suite + '/' + arch + '/' + package + '_' + eversion + '.build{}.log.gz' - log = LOGS_PATH + '/' + path - uri = LOGS_URI + '/' + path - if os.access(log.format('1'), os.R_OK): - html += '<a href="' + uri.format('1') + '" target="main">log1</a>\n' - if os.access(log.format('2'), os.R_OK): - html += '<a href="' + uri.format('2') + '" target="main">2</a>\n' + log = suite + '/' + arch + '/' + package + '_' + eversion + '.build2.log.gz' + diff = suite + '/' + arch + '/' + package + '_' + eversion + '.diff.gz' + if os.access(LOGS_PATH+'/'+log, os.R_OK): + uri = LOGS_URI + '/' + log + size = sizeof_fmt(os.stat(LOGS_PATH+'/'+log).st_size) + html += '<a href="' + uri + '" target="main">build2 (' + size + ')</a>\n' + if os.access(DIFFS_PATH+'/'+diff, os.R_OK): + uri = DIFFS_URI + '/' + diff + html += '<a href="' + uri + '" target="main">diff</a>\n' return html |