# HG changeset patch # User Wei, Elson # Date 1373594711 -28800 # Node ID 8b312c080adbfae4f6d21810cb92ea2094756c71 # Parent 4a0d0616c47daa0a63f582bb611a20a7c4ec95d9 gpg: treat "ERRSIG" as a valid key id but no fingerprint diff -r 4a0d0616c47d -r 8b312c080adb 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