summaryrefslogtreecommitdiffstats
path: root/rpmci/rpmci_inject_rebuild_main.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpmci/rpmci_inject_rebuild_main.py')
-rw-r--r--rpmci/rpmci_inject_rebuild_main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmci/rpmci_inject_rebuild_main.py b/rpmci/rpmci_inject_rebuild_main.py
index eb1373f..5349be6 100644
--- a/rpmci/rpmci_inject_rebuild_main.py
+++ b/rpmci/rpmci_inject_rebuild_main.py
@@ -42,7 +42,8 @@ def inject_rebuild(options, config, module):
print "Wrote %s" % (msg.ident, )
def main():
- glib.threads_init()
+ if hasattr('glib', 'threads_init'):
+ glib.threads_init()
opts = optparse.OptionParser("usage: %prog [options] ACTION [args]")
opts.add_option('-c', '--config', dest='config', help="Path to configuration file")