mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-25 09:58:21 -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
|
@ -10,6 +10,7 @@ from exec.file import makedir
|
|||
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_boot, fastboot_erase
|
||||
|
@ -42,6 +43,7 @@ def cmd_boot(
|
|||
):
|
||||
"""Boot JumpDrive or the Kupfer aboot image. Erases Android DTBO in the process."""
|
||||
enforce_wrap()
|
||||
_check_kbs_version(init_pkgbuilds=True)
|
||||
device = get_profile_device(profile)
|
||||
flavour = get_profile_flavour(profile).name
|
||||
deviceinfo = device.parse_deviceinfo()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue