summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/__init__.py2
-rw-r--r--b4/command.py18
2 files changed, 1 insertions, 19 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 988df71..a0fa086 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -678,7 +678,7 @@ class LoreSeries:
return None, None
logger.debug('Looking at %s', lmsg.full_subject)
lmsg.load_hashes()
- if not len(lmsg.blob_indexes):
+ if not lmsg.blob_indexes:
logger.critical('ERROR: some patches do not have indexes')
logger.critical(' unable to create a fake-am range')
return None, None
diff --git a/b4/command.py b/b4/command.py
index d3624e9..0393fea 100644
--- a/b4/command.py
+++ b/b4/command.py
@@ -45,11 +45,6 @@ def cmd_attest(cmdargs):
b4.attest.attest_patches(cmdargs)
-def cmd_verify(cmdargs):
- import b4.attest
- b4.attest.verify_attestation(cmdargs)
-
-
def cmd_pr(cmdargs):
import b4.pr
b4.pr.main(cmdargs)
@@ -126,19 +121,6 @@ def cmd():
sp_att.add_argument('patchfile', nargs='+', help='Patches to attest')
sp_att.set_defaults(func=cmd_attest)
- # b4 verify
- sp_ver = subparsers.add_parser('attverify', help='Verify cryptographic attestation of patches in an mbox')
- sp_ver.add_argument('-i', '--attestation-file', dest='attfile',
- help='Use this file for attestation data instead of querying lore.kernel.org')
- sp_ver.add_argument('-t', '--tofu', action='store_true', default=False,
- help='Force TOFU trust model (otherwise uses your global GnuPG setting)')
- sp_ver.add_argument('-X', '--no-fast-exit', dest='nofast', action='store_true', default=False,
- help='Do not exit after first failure')
- sp_ver.add_argument('-F', '--ignore-from-mismatch', dest='ignorefrom', action='store_true',
- default=False, help='Ignore mismatches between From: and PGP uid data')
- sp_ver.add_argument('mbox', nargs=1, help='Mbox containing patches to attest')
- sp_ver.set_defaults(func=cmd_verify)
-
# b4 pr
sp_pr = subparsers.add_parser('pr', help='Fetch a pull request found in a message ID')
sp_pr.add_argument('-g', '--gitdir', default=None,