[gnome-keysign: 58/65] gpgmh: Defaulting to gpgme



commit e86a919a560bdc571e65bffc33c6d3251302dd9f
Author: Tobias Mueller <muelli cryptobitch de>
Date:   Tue Oct 3 12:31:54 2017 +0200

    gpgmh: Defaulting to gpgme
    
    We intend to use gpgme whenever possible.
    If that causes problems, you can try to set the environment variable
    KEYSIGN_GPGME to 0.

 keysign/gpgmh.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/keysign/gpgmh.py b/keysign/gpgmh.py
index 886ff82..8105e2d 100644
--- a/keysign/gpgmh.py
+++ b/keysign/gpgmh.py
@@ -32,12 +32,13 @@ log = logging.getLogger(__name__)
 # We also use the standard monkeysign module for now, because
 # we know it better.  Expect that to change, though.
 try:
-    GPGME = int(os.environ.get("KEYSIGN_GPGME", 0))
+    GPGME = int(os.environ.get("KEYSIGN_GPGME", 1))
     if GPGME:
         from . import gpgmeh as gpg
     else:
         from . import gpgmks as gpg
 except ImportError:
+    log.exception("Error import gpgmeh, falling back tp gpgmks")
     from . import gpgmks as gpg
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]