Skip to content

Commit

Permalink
gkeys: Set default verify-keyring, add verify-nick default
Browse files Browse the repository at this point in the history
Fix verify-keyring typo in verify action.
Add missed self.category setting in verify().
  • Loading branch information
dol-sen committed Aug 25, 2015
1 parent 54c1719 commit 1a96292
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gkeys/gkeys/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ def verify(self, args, messages=None):
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)
Expand All @@ -685,6 +685,7 @@ def verify(self, args, messages=None):
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
Expand Down
3 changes: 2 additions & 1 deletion gkeys/gkeys/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def _add_gkey_defaults(self):
'keyring': None,
'type': 'clearsign',
}
self.defaults['verify-keyring'] = ''
self.defaults['verify-keyring'] = 'gentoo'
self.defaults['verify-nick'] = 'gkeys'
self.defaults['verify-seeds'] = {}


Expand Down

0 comments on commit 1a96292

Please sign in to comment.