[Qa-jenkins-scm] [jenkins.debian.net] 02/03: reproducible: html_packages: don't link armhf pages in amd64 ones

Holger Levsen holger at moszumanska.debian.org
Sat Aug 22 11:13:31 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 7e450121b6d25eb58039233a06a7eaf8c719aba5
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Sat Aug 22 10:28:38 2015 +0000

    reproducible: html_packages: don't link armhf pages in amd64 ones
---
 bin/reproducible_html_packages.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 7fb61cd..c12a253 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)
 

-- 
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