forked from Mirror/pmbootstrap
pmb/helpers/frontend: drop all --flavors args (MR 2093)
This commit is contained in:
parent
ca7ac4c704
commit
1d5030738c
3 changed files with 5 additions and 25 deletions
|
@ -43,14 +43,7 @@ def _parse_flavor(args, autoinstall=True):
|
|||
flavors = pmb.chroot.other.kernel_flavors_installed(
|
||||
args, suffix, autoinstall)
|
||||
|
||||
# Parse and verify the flavor argument
|
||||
flavor = args.flavor
|
||||
if flavor:
|
||||
if flavor not in flavors:
|
||||
raise RuntimeError(f"No kernel installed with flavor {flavor}!" +
|
||||
" Run 'pmbootstrap flasher list_flavors' to"
|
||||
" get a list.")
|
||||
return flavor
|
||||
# Parse and verify flavor
|
||||
if not len(flavors):
|
||||
raise RuntimeError(
|
||||
"No kernel flavors installed in chroot " + suffix + "! Please let"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue