diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-02-14 18:42:15 +0100 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-02-14 18:42:15 +0100 |
commit | 00677a10769191f3ed05f6762fad84bebfee3111 (patch) | |
tree | 5bbb3350ea6f00d7aa361cab5bfb91363d331232 /bin | |
parent | 6c8a86ede6816bc883cc3f4db3f2a946f01c221a (diff) | |
download | jenkins.debian.net-00677a10769191f3ed05f6762fad84bebfee3111.tar.xz |
reproducible: html_notes: call get_bugs() globally
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_notes.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py index 78cc52f8..9841c19a 100755 --- a/bin/reproducible_html_notes.py +++ b/bin/reproducible_html_notes.py @@ -351,8 +351,7 @@ def get_trailing_icon(package, bugs): html += '" title="#' + str(bug) + '">+</span>' return html -def index_notes(notes): - bugs = get_bugs() +def index_notes(notes, bugs): log.debug('Building the index_notes page...') html = '\n<p>There are ' + str(len(notes)) + ' packages with notes.</p>\n' html += '<p>\n' + tab + '<code>\n' @@ -374,11 +373,12 @@ def index_notes(notes): if __name__ == '__main__': issues_count = {} + bugs = get_bugs() notes = load_notes() issues = load_issues() iterate_over_notes(notes) iterate_over_issues(issues) index_issues(issues) - index_notes(notes) + index_notes(notes, bugs) purge_old_notes(notes) process_packages(notes) # regenerate all rb-pkg/ pages |