From 3e3c639d0515e5dff54c42ba0e6e75d004ecaa29 Mon Sep 17 00:00:00 2001 From: Newbyte Date: Mon, 15 Jan 2024 15:47:57 +0100 Subject: [PATCH] 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. --- pmb/helpers/args.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/helpers/args.py b/pmb/helpers/args.py index ea364030..f0168037 100644 --- a/pmb/helpers/args.py +++ b/pmb/helpers/args.py @@ -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)