summaryrefslogtreecommitdiffstats
path: root/rpmci/rpmci_vcs_mirror_main.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpmci/rpmci_vcs_mirror_main.py')
-rw-r--r--rpmci/rpmci_vcs_mirror_main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmci/rpmci_vcs_mirror_main.py b/rpmci/rpmci_vcs_mirror_main.py
index db24e58..7d1a85a 100644
--- a/rpmci/rpmci_vcs_mirror_main.py
+++ b/rpmci/rpmci_vcs_mirror_main.py
@@ -229,7 +229,8 @@ class VCSMirror(object):
def main():
- glib.threads_init()
+ if hasattr('glib', 'threads_init'):
+ glib.threads_init()
opts = optparse.OptionParser("usage: %prog [options]")
opts.add_option('-c', '--config', dest='config', help="Path to configuration file")