From 223790f9f27a95e487b9a0aae2424209abeb478f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 11 May 2015 16:09:20 +0200 Subject: reprodcuible: only show hint for sid --- bin/reproducible_html_indexes.py | 9 +++++++-- 1 file 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': '

There are {tot} faulty packages without notes in {suite}/{arch}. These are the packages with failures that still need to be investigated.

', + 'header': '

There are {tot} faulty packages without notes in {suite}/{arch}.{hint}

', '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: -- cgit v1.2.3-70-g09d2