Commit 69f487ae authored by Philipp Hörist's avatar Philipp Hörist

Add version check for python-gnupg

parent a6cb7230
......@@ -31,6 +31,7 @@ import os
import logging
import locale
import uuid
from distutils.version import LooseVersion as V
import config
import nbxmpp
......@@ -160,7 +161,19 @@ except ImportError:
GPG_BINARY = 'gpg'
import gnupg
We need
but shares the same package name.
It cannot be used as a drop-in replacement.
We test with a version check if python-gnupg is installed as it is
on a much lower version number than gnupg
Also we need at least python-gnupg 0.3.8
v_gnupg = gnupg.__version__
if V(v_gnupg) < V('0.3.8') or V(v_gnupg) > V('1.0.0'):'Gajim needs python-gnupg >= 0.3.8')
HAVE_GPG = False
except ImportError:
HAVE_GPG = False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment