[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: don't create links to page we are on
Holger Levsen
holger at moszumanska.debian.org
Tue Aug 25 14:53:00 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 bb9058b3ed3e0b8a4c5e6a3188beeb71a80ab7b3
Author: Holger Levsen <holger at layer-acht.org>
Date: Tue Aug 25 16:52:44 2015 +0200
reproducible: don't create links to page we are on
---
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 1b05f16..c42d7c4 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -164,12 +164,14 @@ def gen_extra_links(package, version, suite, arch, status):
return (links, default_view)
-def gen_suites_links(package, current_arch):
+def gen_suites_links(package, current_suite, current_arch):
html = '<ul>\n'
for a in ARCHS:
html += tab + '<li>{}\n'.format(a)
html += tab + '<ul class="children">\n'
for s in SUITES:
+ if s == current_suite and a == current_arch:
+ continue
if a == 'armhf' and s != 'unstable':
continue
status = package.get_status(s, a)
@@ -216,7 +218,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, arch)
+ suites_links = gen_suites_links(package, suite, 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