]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/gpg.py: Handle a few more keywords for invalid or and expired signatures.
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 3 Aug 2014 16:42:42 +0000 (18:42 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 3 Aug 2014 16:42:42 +0000 (18:42 +0200)
daklib/gpg.py

index 7bc4f082c708fd5eb2d21c16b506c9b6bf31e6f2..236b4927b29f4a57d396e8b0647b70bd761cbdf5 100644 (file)
@@ -205,11 +205,11 @@ class SignedFile(object):
         elif fields[1] in ('PLAINTEXT', 'GOODSIG'):
             pass
 
-        elif fields[1] in ('EXPSIG', 'EXPKEYSIG'):
+        elif fields[1] in ('EXPSIG', 'EXPKEYSIG', 'KEYEXPIRED'):
             self.expired = True
             self.invalid = True
 
-        elif fields[1] in ('REVKEYSIG', 'BADSIG', 'ERRSIG'):
+        elif fields[1] in ('REVKEYSIG', 'BADSIG', 'ERRSIG', 'KEYREVOKED', 'NO_PUBKEY'):
             self.invalid = True
 
         else: