gpg: treat "ERRSIG" as a valid key id but no fingerprint
authorWei, Elson <elson.wei@gmail.com>
Fri, 12 Jul 2013 10:05:11 +0800
changeset 19441 8b312c080adb
parent 19440 4a0d0616c47d
child 19442 33c72f054e16
gpg: treat "ERRSIG" as a valid key id but no fingerprint
hgext/gpg.py
--- a/hgext/gpg.py	Thu Jul 11 13:11:41 2013 -0400
+++ b/hgext/gpg.py	Fri Jul 12 10:05:11 2013 +0800
@@ -55,12 +55,13 @@
             if not l.startswith("[GNUPG:]"):
                 continue
             l = l[9:]
-            if l.startswith("ERRSIG"):
-                err = _("error while verifying signature")
-                break
-            elif l.startswith("VALIDSIG"):
+            if l.startswith("VALIDSIG"):
                 # fingerprint of the primary key
                 fingerprint = l.split()[10]
+            elif l.startswith("ERRSIG"):
+                key = l.split(" ", 3)[:2]
+                key.append("")
+                fingerprint = None
             elif (l.startswith("GOODSIG") or
                   l.startswith("EXPSIG") or
                   l.startswith("EXPKEYSIG") or