fix syntax

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 3577918a
Pipeline #70791 passed with stage
in 4 minutes and 35 seconds
......@@ -370,7 +370,7 @@ class GPG(object):
"--keyserver",
keyserver,
"--keyserver-options",
no-self-sigs-only,
"no-self-sigs-only",
"--recv-keys",
fpr
)
......@@ -682,13 +682,13 @@ class KeycheckKeyResult(object):
c = self.capabilities.get("e", None)
if c is None:
self.errors.add("key_encryption_missing")
elif c is not "" and c < cutoff:
elif c != "" and c < cutoff:
self.errors.add("key_encryption_expires_soon")
c = self.capabilities.get("s", None)
if c is None:
self.errors.add("key_signing_missing")
elif c is not "" and c < cutoff:
elif c != "" and c < cutoff:
self.errors.add("key_signing_expires_soon")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment