aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraeroniero33 <justthisthing@gmail.com>2016-06-18 16:59:58 +0000
committerBrian Dolbec <dolsen@gentoo.org>2016-12-24 01:40:26 -0800
commit82fb94f1ab462d303c150de52f93945b77599c95 (patch)
tree36db1b7761c10ed6f90d9f589cbb71ffa5fdfb10
parentCreated the send-key function (diff)
downloadgentoo-keys-82fb94f1ab462d303c150de52f93945b77599c95.tar.gz
gentoo-keys-82fb94f1ab462d303c150de52f93945b77599c95.tar.bz2
gentoo-keys-82fb94f1ab462d303c150de52f93945b77599c95.zip
Fixed a bug in the verify function
-rw-r--r--gkeys/gkeys/actions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py
index 12b8efa..49fa68b 100644
--- a/gkeys/gkeys/actions.py
+++ b/gkeys/gkeys/actions.py
@@ -749,7 +749,6 @@ class Actions(ActionBase):
messages.append(_unicode("Using config defaults..: %s %s")
% (args.category, args.nick))
return self.verify(args, messages)
-
return self._verify(args, key, messages)
@@ -838,6 +837,8 @@ class Actions(ActionBase):
break
else:
sig_path = None
+ elif signature:
+ sig_path = os.path.abspath(signature)
self.logger.info("Verifying file...")
verified = False
results = self.gpg.verify_file(key, sig_path, filepath)