Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys/gkeys/
Date: Sun, 31 May 2015 05:03:38
Message-Id: 1433047591.666b8a6c00251b0034d5e57ee338a44aa6b0a997.dolsen@gentoo
1 commit: 666b8a6c00251b0034d5e57ee338a44aa6b0a997
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 30 23:13:46 2015 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Sun May 31 04:46:31 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=666b8a6c
7
8 gkeys/actions.py: Fix an UnboundLocalError
9
10 File "/usr/lib64/python2.7/site-packages/gkeys/actions.py", line 798, in _verify
11 results = self.gpg.verify_file(key, sig_path, filepath)
12 UnboundLocalError: local variable 'sig_path' referenced before assignment
13 Reported by: Johannes Huber <johu <AT> gentoo.org>
14
15 gkeys/gkeys/actions.py | 1 +
16 1 file changed, 1 insertion(+)
17
18 diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py
19 index d467500..24c323e 100644
20 --- a/gkeys/gkeys/actions.py
21 +++ b/gkeys/gkeys/actions.py
22 @@ -734,6 +734,7 @@ class Actions(object):
23 "not supplied, using current directory ./%s") % filepath)
24 if args.timestamp:
25 timestamp_path = filepath + ".timestamp"
26 + sig_path = None
27 if isurl:
28 from sslfetch.connections import Connector
29 connector_output = {