diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-01-17 13:54:54 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-01-17 13:59:47 +0100 |
commit | 2a1f591936ec3972dc1a8705ff804e40729f33c4 (patch) | |
tree | 968ad87df2a4d62f7dc88a78683e0d643380877e /bin | |
parent | 884573657b67a59cdd054c105ca13caf36da2860 (diff) | |
download | jenkins.debian.net-2a1f591936ec3972dc1a8705ff804e40729f33c4.tar.xz |
reproducible: _html_notes: sort issues by number of affected packages
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_notes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py index cd1328bd..766e6dab 100755 --- a/bin/reproducible_html_notes.py +++ b/bin/reproducible_html_notes.py @@ -295,7 +295,7 @@ def index_issues(issues): + tab*3 + "Identified issues\n" + tab*2 + "</th>\n" + tab*2 + "<th>\n" \ + tab*3 + "Affected packages\n" + tab*2 + "</th>\n" + tab + "</tr>\n" html = (tab*2).join(templ.splitlines(True)) - for issue in sorted(issues): + for issue in sorted(issues, key=lambda x: len(issues_count[x]), reverse=True): html += tab*3 + '<tr>\n' html += tab*4 + '<td><a href="' + ISSUES_URI + '/' + issue + \ '_issue.html">' + issue + '</a></td>\n' |