mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-26 18:25:36 -04:00
cli: check KBS version against repos.yml for relevant commands
This commit is contained in:
parent
821bde59e9
commit
c80885ddd7
7 changed files with 32 additions and 4 deletions
|
@ -11,6 +11,7 @@ from exec.file import get_temp_dir
|
|||
from devices.device import get_profile_device
|
||||
from flavours.flavour import get_profile_flavour
|
||||
from flavours.cli import profile_option
|
||||
from version.cli import _check_kbs_version
|
||||
from wrapper import enforce_wrap
|
||||
|
||||
from .fastboot import fastboot_flash
|
||||
|
@ -90,6 +91,7 @@ def cmd_flash(
|
|||
- jumpdrive: one of "emmc", "sdcard" or a path to a block device
|
||||
"""
|
||||
enforce_wrap()
|
||||
_check_kbs_version(init_pkgbuilds=True)
|
||||
device = get_profile_device(profile)
|
||||
flavour = get_profile_flavour(profile).name
|
||||
device_image_path = get_image_path(device, flavour)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue