[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible: fix links for FTBR and untested
Holger Levsen
holger at moszumanska.debian.org
Thu Mar 19 01:17:59 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 447d5f3a5a372660218f312cc792122d9b796d84
Author: Holger Levsen <holger at layer-acht.org>
Date: Thu Mar 19 01:50:58 2015 +0100
reproducible: fix links for FTBR and untested
---
bin/reproducible_html_packages.py | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 61430f8..9421531 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -169,10 +169,18 @@ def gen_suites_links(package, suite):
if i[0] == suite:
continue
status = 'untested' if not i[3] else i[3]
+ if status == 'unreproducible':
+ status = 'FTBR'
html += '<span class="avoidwrap">\n' + tab
- icon = '<a href="/{suite}/{arch}/index_{status}.html"><img src="/static/{icon}" alt="{status}" title="{status}"/></a>\n'
- html += icon.format(icon=join_status_icon(status)[1], status=status, suite=i[0], arch=i[1])
- html += tab + '<a href="' + RB_PKG_URI + '/' + i[0] + '/' + i[1] + \
+ if status != 'untested':
+ prefix = ' <a href="/' + i[0] + '/' + i[1] + '/index_' + status + '.html">'
+ suffix = '</a>\n'
+ else:
+ prefix = ' '
+ suffix = '\n'
+ icon = prefix + '<img src="/static/{icon}" alt="{status}" title="{status}"/>' + suffix
+ html += icon.format(icon=join_status_icon(status)[1], status=status)
+ html += tab + ' <a href="' + RB_PKG_URI + '/' + i[0] + '/' + i[1] + \
'/' + str(package) + '.html" target="_parent">' + i[0] + \
':' + i[2] + '</a>\n'
html += '</span>\n'
--
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