# HG changeset patch # User Wei, Elson # Date 2013-07-12 02:05:11 # Node ID 8b312c080adbfae4f6d21810cb92ea2094756c71 # Parent 4a0d0616c47daa0a63f582bb611a20a7c4ec95d9 gpg: treat "ERRSIG" as a valid key id but no fingerprint diff --git a/hgext/gpg.py b/hgext/gpg.py --- a/hgext/gpg.py +++ b/hgext/gpg.py @@ -55,12 +55,13 @@ class gpg(object): 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