summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_notes.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-01 10:44:33 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-01 10:44:33 +0200
commit3c9906db5bbd695dfb7d2de66ecd0ec9e8a1bbf8 (patch)
tree99e4fb83f9a77ec3547ca44bde2d13812411992b /bin/reproducible_notes.py
parente2e0d5bacd85cf75e3f77e9db052e17a1173b176 (diff)
downloadjenkins.debian.net-3c9906db5bbd695dfb7d2de66ecd0ec9e8a1bbf8.tar.xz
reproducible: make the notes jobs not fail if there is a note for an untested package. add irc notification.
Diffstat (limited to 'bin/reproducible_notes.py')
-rwxr-xr-xbin/reproducible_notes.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/reproducible_notes.py b/bin/reproducible_notes.py
index e2b44f96..80328fac 100755
--- a/bin/reproducible_notes.py
+++ b/bin/reproducible_notes.py
@@ -13,6 +13,7 @@ import json
import yaml
from apt_pkg import version_compare
from reproducible_common import *
+from subprocess import call
NOTES = 'packages.yml'
ISSUES = 'issues.yml'
@@ -46,10 +47,12 @@ def load_notes():
query = query.format(pkg=pkg)
result = query_db(query)
if not result:
- print_critical_message('This query produces no results: ' + query
+ print_critical_message('Warning: This query produces no results: ' + query
+ '\nThis means there is no tested ' +
'package with the name ' + pkg)
- sys.exit(1)
+ kgb = ['kgb-client', '--conf', '/srv/jenkins/kgb/debian-reproducible.conf',
+ '--relay-msg', 'There is problem with the note for '+pkg+' - please investigate']]
+ call(kgb)
else:
notes[pkg] = []
for suite in result: