summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-19 01:50:58 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-19 02:13:57 +0100
commit447d5f3a5a372660218f312cc792122d9b796d84 (patch)
treeb47914945506e68a03737b0b8794778c9b001978 /bin
parente1cdcbf6e72561a6c8880c6819bd1ace2261aa94 (diff)
downloadjenkins.debian.net-447d5f3a5a372660218f312cc792122d9b796d84.tar.xz
reproducible: fix links for FTBR and untested
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_packages.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 61430f8a..9421531e 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'