[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: only link to pkg sets if suite != experimental

Holger Levsen holger at moszumanska.debian.org
Thu Mar 5 17:52:11 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 13121ed48bae453ca7cbc7023655c06b0094c347
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Mar 5 18:51:09 2015 +0100

    reproducible: only link to pkg sets if suite != experimental
---
 bin/reproducible_common.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 5bbcab1..f6c75b6 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -156,7 +156,7 @@ html_head_page = Template((tab*2).join("""
     <li><a href="index_last_48h.html">packages tested in the last 48h</a></li>
     <li><a href="index_all_abc.html">all tested packages (sorted alphabetically)</a></li>
     <li><a href="index_dd-list.html">maintainers of unreproducible packages</a></li>
-    <li><a href="index_pkg_sets.html">package sets stats</a></li>
+$pkgset_link
 $suite_links
     <li><a href="/index_repo_stats.html">repositories overview</a></li>
     <li><a href="/reproducible.html">reproducible stats</a></li>
@@ -192,8 +192,12 @@ def write_html_page(title, body, destfile, suite=None, noheader=False, style_not
     html = ''
     html += html_header.substitute(page_title=title)
     if not noheader:
+        pkgset_link = ''
         if suite:
             suite_links = '<li><a href="/' + suite +'">suite: ' + suite + '</a></li>'
+            if suite != 'experimental':
+                pkgset_link = '<li><a href="/' + suite + 'index_pkg_sets.html">package sets stats</a></li>'
+
         else:
             suite_links = ''
         for i in SUITES:
@@ -201,6 +205,7 @@ def write_html_page(title, body, destfile, suite=None, noheader=False, style_not
                     suite_links += '<li><a href="/' + i +'">suite: ' + i + '</a></li>'
         html += html_head_page.substitute(
             page_title=title,
+            pkgset_link=pkgset_link,
             suite_links=suite_links)
     html += body
     if style_note:

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