summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-08-22 10:28:38 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-08-22 11:06:54 +0000
commit7e450121b6d25eb58039233a06a7eaf8c719aba5 (patch)
treeeeffc6fbad5a3be7973f380879a816c7af639f76 /bin
parentd5a0b24e1efa78a89cfdbacd0544182d35c29d1d (diff)
downloadjenkins.debian.net-7e450121b6d25eb58039233a06a7eaf8c719aba5.tar.xz
reproducible: html_packages: don't link armhf pages in amd64 ones
Diffstat (limited to 'bin')
-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 7fb61cd1..c12a2531 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -164,9 +164,11 @@ def gen_extra_links(package, version, suite, arch, status):
return (links, default_view)
-def gen_suites_links(package):
+def gen_suites_links(package, current_arch):
html = '<ul>\n'
for a in ARCHS:
+ if current_arch == 'amd64' and a != 'amd64':
+ continue
html += tab + '<li>{}\n'.format(a)
html += tab + '<ul class="children">\n'
for s in SUITES:
@@ -214,7 +216,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)
+ suites_links = gen_suites_links(package, arch)
status, icon = join_status_icon(status, pkg, version)
status = gen_status_link_icon(status, icon, suite, arch)