From 3c9906db5bbd695dfb7d2de66ecd0ec9e8a1bbf8 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 1 May 2015 10:44:33 +0200 Subject: reproducible: make the notes jobs not fail if there is a note for an untested package. add irc notification. --- bin/reproducible_notes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin') 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: -- cgit v1.2.3-54-g00ecf