summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_notes.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-06 14:01:07 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-06 14:01:07 +0200
commit47b87c6c3cbf548ed51a936606196ba8b9a8ba98 (patch)
tree2ffd35781c3c89765bd7bd120bd7f3723745047c /bin/reproducible_notes.py
parentd66cd2a0443ae671633546c7f43ce8e128581e00 (diff)
downloadjenkins.debian.net-47b87c6c3cbf548ed51a936606196ba8b9a8ba98.tar.xz
reproducible: reword notes warnings and make the job not fail if package was removed
Diffstat (limited to 'bin/reproducible_notes.py')
-rwxr-xr-xbin/reproducible_notes.py7
1 files changed, 4 insertions, 3 deletions
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)