comparison hgext/gpg.py @ 19444:f9e04a4e28d0

gpg: show "Unknown key ID xxxxxxxx" when the status is ERRSIG
author Wei, Elson <elson.wei@gmail.com>
date Sun, 14 Jul 2013 21:50:52 +0800
parents 2a7fd31ac548
children 0986af9e7006
comparison
equal deleted inserted replaced
19443:2a7fd31ac548 19444:f9e04a4e28d0
120 keys = mygpg.verify(data, sig) 120 keys = mygpg.verify(data, sig)
121 121
122 validkeys = [] 122 validkeys = []
123 # warn for expired key and/or sigs 123 # warn for expired key and/or sigs
124 for key in keys: 124 for key in keys:
125 if key[0] == "ERRSIG":
126 ui.write(_("%s Unknown key ID \"%s\"\n")
127 % (prefix, shortkey(ui, key[1][:15])))
128 continue
125 if key[0] == "BADSIG": 129 if key[0] == "BADSIG":
126 ui.write(_("%s Bad signature from \"%s\"\n") % (prefix, key[2])) 130 ui.write(_("%s Bad signature from \"%s\"\n") % (prefix, key[2]))
127 continue 131 continue
128 if key[0] == "EXPSIG": 132 if key[0] == "EXPSIG":
129 ui.write(_("%s Note: Signature has expired" 133 ui.write(_("%s Note: Signature has expired"