[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: fix status links to point to them in the right suite

Holger Levsen holger at moszumanska.debian.org
Wed Mar 11 20:35:23 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 093285a1eb853d6a55cf062ba1e44c5eb1295a7e
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Mar 11 21:33:22 2015 +0100

    reproducible: fix status links to point to them in the right suite
---
 bin/reproducible_html_packages.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 80e66ff..67a0c7d 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -88,15 +88,15 @@ def check_package_status(package, suite, nocheck=False):
     return (status, version, build_date)
 
 
-def gen_status_link_icon(status, icon):
+def gen_status_link_icon(status, icon, suite, arch):
     html = ''
     if status != 'untested':
-        html += tab*6 + '<a href="/index_{status}.html" target="_parent" ' + \
-                'title="{status}">\n'
+        html += tab*6 + '<a href="/{suite}/{arch}/index_{status}.html"' + \
+                ' target="_parent" title="{status}">\n'
     html += tab*9 + '<img src="/static/{icon}" alt="{status}" />\n'
     if status != 'untested':
         html += tab*8 + '</a>\n'
-    return html.format(status=status, icon=icon)
+    return html.format(status=status, icon=icon, suite=suite, arch=arch)
 
 
 def gen_extra_links(package, version, suite, arch):
@@ -200,7 +200,7 @@ def gen_packages_html(packages, suite=None, arch=None, no_clean=False, nocheck=F
         links, default_view = gen_extra_links(pkg, version, suite, arch)
         suites_links = gen_suites_links(pkg, suite)
         status, icon = join_status_icon(status, pkg, version)
-        status = gen_status_link_icon(status, icon)
+        status = gen_status_link_icon(status, icon, suite, arch)
 
         html = html_package_page.substitute(package=pkg,
                                             status=status,

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