1 |
commit: cc14fb9350cbfea5d07564bee963d9dc60b94239 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 27 21:48:07 2016 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 27 21:49:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=cc14fb93 |
7 |
|
8 |
Actions._verify: support --signature path argument |
9 |
|
10 |
If the --signature argument refers to an existing file path, |
11 |
use it. This fixes an issue where signature verification would |
12 |
fail because the sig_path variable referred to None. |
13 |
|
14 |
gkeys/gkeys/actions.py | 2 ++ |
15 |
1 file changed, 2 insertions(+) |
16 |
|
17 |
diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py |
18 |
index d51fb3f..b38db19 100644 |
19 |
--- a/gkeys/gkeys/actions.py |
20 |
+++ b/gkeys/gkeys/actions.py |
21 |
@@ -758,6 +758,8 @@ class Actions(ActionBase): |
22 |
break |
23 |
else: |
24 |
signature = None |
25 |
+ elif signature is not None and os.path.exists(signature): |
26 |
+ sig_path = signature |
27 |
else: |
28 |
filepath = os.path.abspath(filepath) |
29 |
self.logger.debug( |