forked from Mirror/pmbootstrap
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:
parent
03a59287dc
commit
3e3c639d05
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ def init(args):
|
||||||
|
|
||||||
# Initialization code which may raise errors
|
# Initialization code which may raise errors
|
||||||
check_pmaports_path(args)
|
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"]:
|
"pull", "shutdown", "zap"]:
|
||||||
pmb.config.pmaports.read_config(args)
|
pmb.config.pmaports.read_config(args)
|
||||||
add_deviceinfo(args)
|
add_deviceinfo(args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue