summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-04 01:53:04 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-04 01:53:04 +0200
commit123c712b340cab14c600a2f674598433789963cc (patch)
tree432e320b8e043e556728373c2c803e878d7ebee4 /bin
parentf4c68f1d927c2aabaf73014b02c81f2067161628 (diff)
downloadjenkins.debian.net-123c712b340cab14c600a2f674598433789963cc.tar.xz
reproducible: remove link to same page in navigation menu of pkg pages
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_packages.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 3c078eb5..6e6a3f85 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -195,9 +195,13 @@ def gen_suites_links(package, current_suite, current_arch):
suffix = '</a>\n'
icon_html = prefix + '<img src="/static/{icon}" alt="{spokenstatus}" title="{spokenstatus}"/>' + suffix
html += icon_html.format(icon=icon, status=status, spokenstatus=spokenstatus)
- html += (tab*2 + ' <a href="{}/{}/{}/{}.html" target="_parent"' + \
- ' title="{}: {}{}">{}</a> in <a href="/{}/{}/" target="_parent">{}</a>\n').format(RB_PKG_URI,
- s, a, package.name, spokenstatus, version, build_date, version, s, a, s)
+ if ( s == current_suite and a == current_arch ):
+ html += (tab*2 + ' {}').format(version)
+ else:
+ html += (tab*2 + ' <a href="{}/{}/{}/{}.html" target="_parent"' + \
+ ' title="{}: {}{}">{}</a>').format(RB_PKG_URI,
+ s, a, package.name, spokenstatus, version, build_date, version)
+ html += ' in <a href="/{}/{}/" target="_parent">{}</a>\n'.format(s, a, s)
html += '</li>\n'
html += tab + '</ul></li>'
html += '</ul>\n'