summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_notes.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index dbde9474..4d593a83 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -148,6 +148,17 @@ def load_notes():
notes = yaml.load(fd)
log.debug("notes loaded. There are " + str(len(notes)) +
" package listed")
+ for package in notes: # check if every pacakge listed on the notes
+ try: # actually have been tested
+ query = 'SELECT name ' + \
+ 'FROM source_packages ' + \
+ 'WHERE name="%s"' % package
+ result = query_db(query)[0]
+ except IndexError:
+ print_critical_message('This query produces no results: ' + query +
+ '\nThis means there is no tested package with the name ' +
+ package + '.')
+ raise
return notes