diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-05-03 11:29:03 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-05-03 11:41:13 +0200 |
commit | 70fb72c8253b3fa9343ddb576d52e9976f817578 (patch) | |
tree | fc72c63afa39de77397d831643df620f19f5b6a3 /bin/reproducible_common.py | |
parent | 58906a76de46cbb5f3839504262ac5ef87b70aec (diff) | |
download | jenkins.debian.net-70fb72c8253b3fa9343ddb576d52e9976f817578.tar.xz |
reproducible: move the code to call kgb and relay messagess to common.py
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, |