aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2015-08-25 07:09:09 -0700
committerBrian Dolbec <dolsen@gentoo.org>2015-08-25 07:09:09 -0700
commit1a9629201a102f2a173116a9e9ce368315501c0e (patch)
treef7f222c0aa250193e473cacaa04548759ef82897
parentactionbase.py: Fix sanity check in _set_category (diff)
downloadgentoo-keys-1a9629201a102f2a173116a9e9ce368315501c0e.tar.gz
gentoo-keys-1a9629201a102f2a173116a9e9ce368315501c0e.tar.bz2
gentoo-keys-1a9629201a102f2a173116a9e9ce368315501c0e.zip
gkeys: Set default verify-keyring, add verify-nick default
Fix verify-keyring typo in verify action. Add missed self.category setting in verify().
-rw-r--r--gkeys/gkeys/actions.py3
-rw-r--r--gkeys/gkeys/config.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py
index 69d05b6..01255eb 100644
--- a/gkeys/gkeys/actions.py
+++ b/gkeys/gkeys/actions.py
@@ -660,7 +660,7 @@ class Actions(ActionBase):
if not args.filename:
return (False, ['Please provide a signed file.'])
if not args.category:
- args.category = self.config.get_key('verify_keyring')
+ args.category = self.config.get_key('verify-keyring')
self.logger.debug(_unicode(
"ACTIONS: verify; keyring category not specified, using default: %s")
% args.category)
@@ -685,6 +685,7 @@ class Actions(ActionBase):
def _verify(self, args, key, messages=None):
if messages == None:
messages = []
+ self.category = args.category
filepath, signature = args.filename, args.signature
timestamp_path = None
isurl = success = verified = False
diff --git a/gkeys/gkeys/config.py b/gkeys/gkeys/config.py
index 592aad6..ee667ec 100644
--- a/gkeys/gkeys/config.py
+++ b/gkeys/gkeys/config.py
@@ -82,7 +82,8 @@ class GKeysConfig(GPGConfig):
'keyring': None,
'type': 'clearsign',
}
- self.defaults['verify-keyring'] = ''
+ self.defaults['verify-keyring'] = 'gentoo'
+ self.defaults['verify-nick'] = 'gkeys'
self.defaults['verify-seeds'] = {}