changeset 9c9ae68353a3 in /home/hg/repos/gajim

author: Yann Leboulanger <[email protected]>
branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=9c9ae68353a3
description: Gajim need latest nbxmpp version

diffstat:

 src/gajim.py |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 0ed2dc30c94d -r 9c9ae68353a3 src/gajim.py
--- a/src/gajim.py      Mon Dec 23 16:03:39 2013 +0100
+++ b/src/gajim.py      Mon Dec 23 16:56:58 2013 +0100
@@ -68,6 +68,15 @@
     print 'Gajim needs python-nbxmpp to run. Quiting...'
     sys.exit()
 
+try:
+    from distutils.version import LooseVersion as V
+    if V(nbxmpp.__version__) < V("0.3"):
+        print 'Gajim needs python-nbxmpp > 0.3 to run. Quiting...'
+        sys.exit()
+except:
+    print 'Gajim needs python-nbxmpp > 0.3 to run. Quiting...'
+    sys.exit()
+
 from common import demandimport
 demandimport.enable()
 demandimport.ignore += ['gobject._gobject', 'libasyncns', 'i18n',
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to