summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_packages.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-25 16:52:44 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-25 16:52:44 +0200
commitbb9058b3ed3e0b8a4c5e6a3188beeb71a80ab7b3 (patch)
treee0ffaac0f70d525ed84bc7813fe0970f3e1a824c /bin/reproducible_html_packages.py
parent563420c934752820f1f86be38dca5bcb79fb1a05 (diff)
downloadjenkins.debian.net-bb9058b3ed3e0b8a4c5e6a3188beeb71a80ab7b3.tar.xz
reproducible: don't create links to page we are on
Diffstat (limited to 'bin/reproducible_html_packages.py')
-rwxr-xr-xbin/reproducible_html_packages.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 1b05f167..c42d7c4c 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -164,12 +164,14 @@ def gen_extra_links(package, version, suite, arch, status):
return (links, default_view)
-def gen_suites_links(package, current_arch):
+def gen_suites_links(package, current_suite, current_arch):
html = '<ul>\n'
for a in ARCHS:
html += tab + '<li>{}\n'.format(a)
html += tab + '<ul class="children">\n'
for s in SUITES:
+ if s == current_suite and a == current_arch:
+ continue
if a == 'armhf' and s != 'unstable':
continue
status = package.get_status(s, a)
@@ -216,7 +218,7 @@ def gen_packages_html(packages, no_clean=False):
links, default_view = gen_extra_links(
pkg, version, suite, arch, status)
- suites_links = gen_suites_links(package, arch)
+ suites_links = gen_suites_links(package, suite, arch)
status, icon = join_status_icon(status, pkg, version)
status = gen_status_link_icon(status, icon, suite, arch)