aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2016-10-27 14:48:07 -0700
committerBrian Dolbec <dolsen@gentoo.org>2016-10-27 14:49:01 -0700
commitcc14fb9350cbfea5d07564bee963d9dc60b94239 (patch)
treeee3722c8f7a4c953eacbcc6440f399d8aaafa629 /gkeys/gkeys/actions.py
parentActions.checkkey: fix success returncode (diff)
downloadgentoo-keys-cc14fb9350cbfea5d07564bee963d9dc60b94239.tar.gz
gentoo-keys-cc14fb9350cbfea5d07564bee963d9dc60b94239.tar.bz2
gentoo-keys-cc14fb9350cbfea5d07564bee963d9dc60b94239.zip
Actions._verify: support --signature path argument
If the --signature argument refers to an existing file path, use it. This fixes an issue where signature verification would fail because the sig_path variable referred to None.
Diffstat (limited to 'gkeys/gkeys/actions.py')
-rw-r--r--gkeys/gkeys/actions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py
index d51fb3f..b38db19 100644
--- a/gkeys/gkeys/actions.py
+++ b/gkeys/gkeys/actions.py
@@ -758,6 +758,8 @@ class Actions(ActionBase):
break
else:
signature = None
+ elif signature is not None and os.path.exists(signature):
+ sig_path = signature
else:
filepath = os.path.abspath(filepath)
self.logger.debug(