Remove options from the constructor call for gnupg.GPG
authorTomás Touceda <chiiph@leap.se>
Thu, 8 Aug 2013 14:36:00 +0000 (11:36 -0300)
committerTomás Touceda <chiiph@leap.se>
Thu, 8 Aug 2013 14:36:00 +0000 (11:36 -0300)
changes/bug_supported_options [new file with mode: 0644]
src/leap/keymanager/gpg.py

diff --git a/changes/bug_supported_options b/changes/bug_supported_options
new file mode 100644 (file)
index 0000000..e7a70d3
--- /dev/null
@@ -0,0 +1,2 @@
+  o Options parameter in gnupg.GPG isn't supported by all versions, so
+    removing it for the time being.
\ No newline at end of file
index 15c1d9f..b81b218 100644 (file)
@@ -110,9 +110,10 @@ class GPGWrapper(gnupg.GPG):
         @raise: RuntimeError with explanation message if there is a problem
             invoking gpg.
         """
+        # XXX: options isn't always supported, so removing for the time being
         gnupg.GPG.__init__(self, gnupghome=gnupghome, gpgbinary=gpgbinary,
                            verbose=verbose, use_agent=use_agent,
-                           keyring=keyring, options=options)
+                           keyring=keyring)#, options=options)
         self.result_map['list-packets'] = ListPackets
 
     def find_key_by_email(self, email, secret=False):