[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reprodcuible: only show hint for sid
Holger Levsen
holger at moszumanska.debian.org
Mon May 11 14:09:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 223790f9f27a95e487b9a0aae2424209abeb478f
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon May 11 16:09:20 2015 +0200
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 1810877..b4859d0 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:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list