From bc2d9468ca27630cac30f7030b623782ac949e98 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 4 Jul 2015 18:56:42 +0000 Subject: 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(-) (limited to 'bin/reproducible_html_notes.py') diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py index 5d2d2c44..56d00b5a 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 + '\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 + '\n' affected += tab*4 + '

\n' -- cgit v1.2.3-54-g00ecf