diff options
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-x | bin/reproducible_common.py | 7 |
1 files changed, 7 insertions, 0 deletions
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, |