From 47b87c6c3cbf548ed51a936606196ba8b9a8ba98 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 6 Sep 2015 14:01:07 +0200 Subject: reproducible: reword notes warnings and make the job not fail if package was removed --- bin/reproducible_notes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_notes.py b/bin/reproducible_notes.py index b6173598..80e07348 100755 --- a/bin/reproducible_notes.py +++ b/bin/reproducible_notes.py @@ -39,7 +39,8 @@ def load_notes(): try: assert 'version' in original[pkg] except AssertionError: - print_critical_message(pkg + ' did not include a version') + print_critical_message(pkg + ' does not include a version') + irc_msg('The note for ' + pkg + ' does not include a version.') query = 'SELECT s.id, s.version, s.suite ' + \ 'FROM results AS r JOIN sources AS s ON r.package_id=s.id' + \ ' WHERE s.name="{pkg}" AND r.status != ""' + \ @@ -47,12 +48,12 @@ def load_notes(): query = query.format(pkg=pkg) result = query_db(query) if not result: - print_critical_message('Warning: This query produces no results: ' + query + print_warning_message('Warning: This query produces no results: ' + query + '\nThis means there is no tested ' + 'package with the name ' + pkg) try: irc_msg('There is problem with the note for ' + pkg + - ' - please have a look at ' + os.environ['BUILD_URL']) + ' - please check ' + os.environ['BUILD_URL']) except KeyError: log.error('There is a problem with the note for %s - please ' 'check.', pkg) -- cgit v1.2.3-70-g09d2