summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_indexes.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-02-15 01:15:19 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-15 17:37:46 +0100
commitfa09684b085ed385ef9ed84c1d5e526141f176d1 (patch)
tree23b994eae4acaba1d6831d42e8b0618d1968231a /bin/reproducible_html_indexes.py
parent69b0eb1dfe63a9d166742a7515d10ca24b71c4a2 (diff)
downloadjenkins.debian.net-fa09684b085ed385ef9ed84c1d5e526141f176d1.tar.xz
reproducible: html_indexes: does not write anything is the relevant query did not produce results
Diffstat (limited to 'bin/reproducible_html_indexes.py')
-rwxr-xr-xbin/reproducible_html_indexes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py
index db8baba5..a3d162da 100755
--- a/bin/reproducible_html_indexes.py
+++ b/bin/reproducible_html_indexes.py
@@ -155,6 +155,8 @@ def build_page_section(section):
print_critical_message('A query failed: ' + queries[section['query']])
raise
html = ''
+ if not rows: # there are no package in this set
+ return html # do not output anything on the page.
html += build_leading_text_section(section, rows)
html += '<p>\n' + tab + '<code>\n'
for pkg in rows: