[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: deal with global pages

Holger Levsen holger at moszumanska.debian.org
Thu Mar 5 15:03:36 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 877fb9a6336fd8f1a387cb3bb397018b3dee77b3
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Mar 5 16:02:34 2015 +0100

    reproducible: deal with global pages
---
 bin/reproducible_common.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 34942fd..5bbcab1 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -192,7 +192,10 @@ def write_html_page(title, body, destfile, suite=None, noheader=False, style_not
     html = ''
     html += html_header.substitute(page_title=title)
     if not noheader:
-        suite_links = '<li><a href="/' + suite +'">suite: ' + suite + '</a></li>'
+        if suite:
+            suite_links = '<li><a href="/' + suite +'">suite: ' + suite + '</a></li>'
+        else:
+            suite_links = ''
         for i in SUITES:
                if i != suite:
                     suite_links += '<li><a href="/' + i +'">suite: ' + i + '</a></li>'

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