Show More
@@ -21,6 +21,7 b' class gpg:' | |||
|
21 | 21 | |
|
22 | 22 | def verify(self, data, sig): |
|
23 | 23 | """ returns of the good and bad signatures""" |
|
24 | sigfile = datafile = None | |
|
24 | 25 | try: |
|
25 | 26 | # create temporary files |
|
26 | 27 | fd, sigfile = tempfile.mkstemp(prefix="hg-gpg-", suffix=".sig") |
@@ -34,12 +35,11 b' class gpg:' | |||
|
34 | 35 | gpgcmd = ("%s --logger-fd 1 --status-fd 1 --verify " |
|
35 | 36 | "\"%s\" \"%s\"" % (self.path, sigfile, datafile)) |
|
36 | 37 | ret = util.filter("", gpgcmd) |
|
37 | except: | |
|
38 | finally: | |
|
38 | 39 | for f in (sigfile, datafile): |
|
39 | 40 | try: |
|
40 | 41 | if f: os.unlink(f) |
|
41 | 42 | except: pass |
|
42 | raise | |
|
43 | 43 | keys = [] |
|
44 | 44 | key, fingerprint = None, None |
|
45 | 45 | err = "" |
General Comments 0
You need to be logged in to leave comments.
Login now