forked from Mirror/pmbootstrap
is_systemd_selected: check for branch support (MR 2273)
Don't attempt to install postmarketos-base-systemd if the current branch doesn't have a systemd section in pmaports.cfg.
This commit is contained in:
parent
bfc64d1cb8
commit
de5e4c6962
2 changed files with 4 additions and 3 deletions
|
@ -178,9 +178,7 @@ def require_bootstrap(args, arch, trigger_str):
|
|||
:param arch: for which architecture
|
||||
:param trigger_str: message for the user to understand what caused this
|
||||
"""
|
||||
cfg = pmb.config.pmaports.read_config_repos(args)
|
||||
|
||||
if "systemd" in cfg and pmb.config.other.is_systemd_selected(args):
|
||||
if pmb.config.other.is_systemd_selected(args):
|
||||
pkg = pmb.parse.apkindex.package(args, "postmarketos-base-systemd",
|
||||
arch, False)
|
||||
if not pkg:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue