From fa09684b085ed385ef9ed84c1d5e526141f176d1 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sun, 15 Feb 2015 01:15:19 +0100 Subject: reproducible: html_indexes: does not write anything is the relevant query did not produce results --- bin/reproducible_html_indexes.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/reproducible_html_indexes.py') 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 += '

\n' + tab + '\n' for pkg in rows: -- cgit v1.2.3-54-g00ecf