diff options
author | Kali Kaneko <kali@futeisha.org> | 2013-10-14 03:19:59 -0300 |
---|---|---|
committer | Kali Kaneko <kali@futeisha.org> | 2013-10-14 03:19:59 -0300 |
commit | a614bcc2281760a1a34722e430b4bf991d6b9bef (patch) | |
tree | 91d3592784d3963e34dce1be51dc8f9f1bfc6132 /src/leap/keymanager/__init__.py | |
parent | 22c91809fa03f3951b7a9395bebe01b07e28d1f6 (diff) | |
parent | 4f8408f54ee5dff6706cee6c052beb1c81c51dd7 (diff) |
Merge tag '0.3.3' into debian-0.3.3
Tag leap.keymanager version 0.3.3
Diffstat (limited to 'src/leap/keymanager/__init__.py')
-rw-r--r-- | src/leap/keymanager/__init__.py | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/leap/keymanager/__init__.py b/src/leap/keymanager/__init__.py index 2f39ad9..76be226 100644 --- a/src/leap/keymanager/__init__.py +++ b/src/leap/keymanager/__init__.py @@ -14,11 +14,28 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. - - """ Key Manager is a Nicknym agent for LEAP client. """ +# let's do a little sanity check to see if we're using the wrong gnupg +import sys + +try: + from gnupg.gnupg import GPGUtilities + assert(GPGUtilities) # pyflakes happy + from gnupg import __version__ + from distutils.version import LooseVersion as V + assert(V(__version__) >= V('1.2.2')) + +except ImportError, AssertionError: + print "Ooops! It looks like there is a conflict in the installed version " + print "of gnupg." + print "Disclaimer: Ideally, we would need to work a patch and propose the " + print "merge to upstream. But until then do: " + print + print "% pip uninstall python-gnupg" + print "% pip install gnupg" + sys.exit(1) import logging import requests |