[Qa-jenkins-scm] [jenkins.debian.net] 04/04: reproducible: remove link to same page in navigation menu of pkg pages

Holger Levsen holger at moszumanska.debian.org
Sat Oct 3 23:53: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 123c712b340cab14c600a2f674598433789963cc
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Oct 4 01:53:04 2015 +0200

    reproducible: remove link to same page in navigation menu of pkg pages
---
 bin/reproducible_html_packages.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 3c078eb..6e6a3f8 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -195,9 +195,13 @@ def gen_suites_links(package, current_suite, current_arch):
                 suffix = '</a>\n'
             icon_html = prefix + '<img src="/static/{icon}" alt="{spokenstatus}" title="{spokenstatus}"/>' + suffix
             html += icon_html.format(icon=icon, status=status, spokenstatus=spokenstatus)
-            html += (tab*2 + ' <a href="{}/{}/{}/{}.html" target="_parent"' + \
-                     ' title="{}: {}{}">{}</a> in <a href="/{}/{}/" target="_parent">{}</a>\n').format(RB_PKG_URI,
-                     s, a, package.name, spokenstatus, version, build_date, version, s, a, s)
+            if ( s == current_suite and a == current_arch ):
+                html += (tab*2 + ' {}').format(version)
+            else:
+                html += (tab*2 + ' <a href="{}/{}/{}/{}.html" target="_parent"' + \
+                     ' title="{}: {}{}">{}</a>').format(RB_PKG_URI,
+                     s, a, package.name, spokenstatus, version, build_date, version)
+            html += ' in <a href="/{}/{}/" target="_parent">{}</a>\n'.format(s, a, s)
             html += '</li>\n'
         html += tab + '</ul></li>'
     html += '</ul>\n'

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