pmb.helpers.args: Skip some initialisation code when running checksum (MR 2228)

Without this, pmbootstrap will give an error if you have a nonexistent
device selected when trying to checksum a package. This can be annoying
when switching between different branches where devices may or may not
exist, and I don't think these initialisation steps are necessary for
the checksum action anyway.
This commit is contained in:
Newbyte 2024-01-15 15:47:57 +01:00 committed by Oliver Smith
parent 03a59287dc
commit 3e3c639d05
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -116,7 +116,7 @@ def init(args):
# Initialization code which may raise errors
check_pmaports_path(args)
if args.action not in ["init", "config", "bootimg_analyze", "log",
if args.action not in ["init", "checksum", "config", "bootimg_analyze", "log",
"pull", "shutdown", "zap"]:
pmb.config.pmaports.read_config(args)
add_deviceinfo(args)