[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: html_notes: in the issue view, sort packages without bugs before the ones with

Holger Levsen holger at moszumanska.debian.org
Sun Jul 5 08:38:55 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 bc2d9468ca27630cac30f7030b623782ac949e98
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Sat Jul 4 18:56:42 2015 +0000

    reproducible: html_notes: in the issue view, sort packages without bugs before the ones with
---
 bin/reproducible_html_notes.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index 5d2d2c4..56d00b5 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -280,7 +280,7 @@ def gen_html_issue(issue, suite):
             affected += ' alt="' + status + ' icon" />\n'
             affected += tab*5 + str(len(pkgs)) + ' ' + status + ' packages in ' + suite + '/' + arch +':\n'
             affected += tab*5 + '<code>\n'
-            for pkg in pkgs:
+            for pkg in sorted(pkgs, key=lambda x: x in bugs):
                 affected += tab*6 + link_package(pkg, suite, arch, bugs)
             affected += tab*5 + '</code>\n'
             affected += tab*4 + '</p>\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