diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-05-11 16:09:20 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-05-11 16:09:20 +0200 |
commit | 223790f9f27a95e487b9a0aae2424209abeb478f (patch) | |
tree | aa646aa2d3aa9723961ff9f76259700f9c3ea7e1 | |
parent | c7cc526888766d9fec45fe862d75f20d739c161c (diff) | |
download | jenkins.debian.net-223790f9f27a95e487b9a0aae2424209abeb478f.tar.xz |
reprodcuible: only show hint for sid
-rwxr-xr-x | bin/reproducible_html_indexes.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py index 1810877c..b4859d09 100755 --- a/bin/reproducible_html_indexes.py +++ b/bin/reproducible_html_indexes.py @@ -304,8 +304,9 @@ pages = { }, 'no_notes': { 'notes': True, + 'notes_hint': True, 'title': 'Packages without notes', - 'header': '<p>There are {tot} faulty packages without notes in {suite}/{arch}. These are the packages with failures that still need to be investigated.</p>', + 'header': '<p>There are {tot} faulty packages without notes in {suite}/{arch}.{hint}</p>', 'header_query': 'SELECT COUNT(*) FROM (SELECT s.id FROM sources AS s JOIN results AS r ON r.package_id=s.id WHERE r.status IN ("unreproducible", "FTBFS", "blacklisted") AND s.id NOT IN (SELECT package_id FROM notes) AND s.suite="{suite}" AND s.architecture="{arch}")', 'body': [ { @@ -423,9 +424,13 @@ def build_page(page, suite=None, arch=None): html = '' footnote = False if pages[page].get('header'): + if pages[page].get('notes_hint') and pages[page]['notes_hint'] and suite == defaultsuite: + hint = 'These are the packages with failures that still need to be investigated.' + else: + hint = '' if pages[page].get('header_query'): html += pages[page]['header'].format( - tot=query_db(pages[page]['header_query'].format(suite=suite, arch=arch))[0][0], suite=suite, arch=arch) + tot=query_db(pages[page]['header_query'].format(suite=suite, arch=arch))[0][0], suite=suite, arch=arch, hint=hint) else: html += pages[page].get('header') for section in page_sections: |