sig.summary == 0 appears to be a type of signature success.
sig_failure = False
fingerprints = []
for sig in sigs:
- if (sig.summary & gpgme.SIGSUM_VALID != 0) or (sig.summary & gpgme.SIGSUM_GREEN != 0):
+ if (sig.summary == 0) or (sig.summary & gpgme.SIGSUM_VALID != 0) or (sig.summary & gpgme.SIGSUM_GREEN != 0):
fingerprints += [sig.fpr]
else:
sig_failure = True
sig_failure = False
sig_fingerprints = []
for res_ in result:
- if (res_.summary & gpgme.SIGSUM_VALID != 0) or (res_.summary & gpgme.SIGSUM_GREEN != 0):
+ if (res_.summary == 0) or (res_.summary & gpgme.SIGSUM_VALID != 0) or (res_.summary & gpgme.SIGSUM_GREEN != 0):
sig_fingerprints += [res_.fpr]
else:
sig_failure = True
sig_failure = False
fingerprints = []
for sig in sigs:
- if (sig.summary & gpgme.SIGSUM_VALID != 0) or (sig.summary & gpgme.SIGSUM_GREEN != 0):
+ if (sig.summary == 0) or (sig.summary & gpgme.SIGSUM_VALID != 0) or (sig.summary & gpgme.SIGSUM_GREEN != 0):
fingerprints += [sig.fpr]
else:
sig_failure = True