From 70fb72c8253b3fa9343ddb576d52e9976f817578 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sun, 3 May 2015 11:29:03 +0200 Subject: reproducible: move the code to call kgb and relay messagess to common.py --- bin/reproducible_common.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin/reproducible_common.py') diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index cea16cfa..6dedc05a 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -21,6 +21,7 @@ import datetime import psycopg2 import html as HTML from string import Template +from subprocess import call from traceback import print_exception DEBUG = False @@ -499,6 +500,12 @@ def get_trailing_bug_icon(bug, bugs, package=None): pass return html +def irc_msg(msg): + kgb = ['kgb-client', '--conf', '/srv/jenkins/kgb/debian-reproducible.conf', + '--relay-msg'] + kgb.extend(str(msg).strip().split()) + call(kgb) + # init the databases connections conn_db = start_db_connection() # the local sqlite3 reproducible db # get_bugs() is the only user of this, let it initialize the connection itself, -- cgit v1.2.3-70-g09d2