summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-05 18:51:09 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-05 18:51:09 +0100
commit13121ed48bae453ca7cbc7023655c06b0094c347 (patch)
tree2756d2702e663cbcd1bbf3ca8ac68ff0298d5c2f
parent48398a517bbdf295f89b1459fa30d923fe13ea51 (diff)
downloadjenkins.debian.net-13121ed48bae453ca7cbc7023655c06b0094c347.tar.xz
reproducible: only link to pkg sets if suite != experimental
-rwxr-xr-xbin/reproducible_common.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 5bbcab1d..f6c75b61 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: