[Qa-jenkins-scm] [jenkins.debian.net] 02/08: reproducible: html_packages: link the build2 and the diff
Holger Levsen
holger at moszumanska.debian.org
Sun Jul 5 12:01:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit b506b617e2d6da952f3a22f1b7d1840fe269679d
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Wed Jun 17 06:34:14 2015 +0000
reproducible: html_packages: link the build2 and the diff
---
bin/reproducible_html_packages.py | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 72b53f6..2279fc5 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list