commit: 666b8a6c00251b0034d5e57ee338a44aa6b0a997
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat May 30 23:13:46 2015 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sun May 31 04:46:31 2015 +0000
URL: https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=666b8a6c
gkeys/actions.py: Fix an UnboundLocalError
File "/usr/lib64/python2.7/site-packages/gkeys/actions.py", line 798, in _verify
results = self.gpg.verify_file(key, sig_path, filepath)
UnboundLocalError: local variable 'sig_path' referenced before assignment
Reported by: Johannes Huber <johu <AT> gentoo.org>
gkeys/gkeys/actions.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py
index d467500..24c323e 100644
--- a/gkeys/gkeys/actions.py
+++ b/gkeys/gkeys/actions.py
@@ -734,6 +734,7 @@ class Actions(object):
"not supplied, using current directory ./%s") % filepath)
if args.timestamp:
timestamp_path = filepath + ".timestamp"
+ sig_path = None
if isurl:
from sslfetch.connections import Connector
connector_output = {