Rev 203: Don't set a keyring if signatures aren't being checked. in http://bzr.daniel-watkins.co.uk/pqm/xmlrpc

Daniel Watkins daniel at daniel-watkins.co.uk
Fri Aug 1 01:44:59 BST 2008


At http://bzr.daniel-watkins.co.uk/pqm/xmlrpc

------------------------------------------------------------
revno: 203
revision-id: daniel at daniel-watkins.co.uk-20080801004322-4gmvbgz4l3vi6cwd
parent: daniel at daniel-watkins.co.uk-20080801004241-vu29ldmrbb0hyel9
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: xmlrpc
timestamp: Fri 2008-08-01 01:43:22 +0100
message:
  Don't set a keyring if signatures aren't being checked.
-------------- next part --------------
=== modified file 'pqm/ui/xmlrpc.py'
--- a/pqm/ui/xmlrpc.py	2008-08-01 00:20:19 +0000
+++ b/pqm/ui/xmlrpc.py	2008-08-01 00:43:22 +0000
@@ -43,7 +43,9 @@
             options = FakeOptions()
             options.verify_sigs = self.pqminfo.configp.get_boolean_option(
                 'DEFAULT', 'verify_sigs', True)
-            options.keyring = self.pqminfo.configp.get('DEFAULT', 'keyring')
+            if options.verify_sigs:
+                options.keyring = self.pqminfo.configp.get('DEFAULT',
+                                                           'keyring')
             # TODO: Eww.
             pqm.gpgv_path = self.pqminfo.configp.get_option('DEFAULT',
                 'gpgv_path', 'gpgv')



More information about the bazaar-commits mailing list