aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2016-12-23 16:36:55 -0800
committerBrian Dolbec <dolsen@gentoo.org>2016-12-23 16:36:55 -0800
commit93c87f84c607819b8b544705f2b50d6721911bd3 (patch)
tree9f02340474ee1d8ead583f5bfe9b2a51771a76c6 /gkeys/gkeys
parentgkeys actions: Fix missing category errors for sign action (diff)
downloadgentoo-keys-93c87f84c607819b8b544705f2b50d6721911bd3.tar.gz
gentoo-keys-93c87f84c607819b8b544705f2b50d6721911bd3.tar.bz2
gentoo-keys-93c87f84c607819b8b544705f2b50d6721911bd3.zip
gkeys actionbase: Fix trust model detection & setting in _set_trust()
Diffstat (limited to 'gkeys/gkeys')
-rw-r--r--gkeys/gkeys/actionbase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gkeys/gkeys/actionbase.py b/gkeys/gkeys/actionbase.py
index 67d3520..3993be4 100644
--- a/gkeys/gkeys/actionbase.py
+++ b/gkeys/gkeys/actionbase.py
@@ -95,8 +95,8 @@ class ActionBase(object):
trust = self.config.get_key('trust-model', cat)
if trust in [None]:
trust = 'auto'
- if 'trust-model' in self.config.defaults['gpg_defaults']:
- index = self.config.defaults['gpg_defaults'].index('trust-model')
+ if '--trust-model' in self.config.defaults['gpg_defaults']:
+ index = self.config.defaults['gpg_defaults'].index('--trust-model')
self.config.defaults['gpg_defaults'][index+1] = trust
else:
self.config.defaults['gpg_defaults'].extend(['--trust-model', trust])