Skip to content
Snippets Groups Projects
Unverified Commit d05d57b3 authored by Newbyte's avatar Newbyte :snowflake:
Browse files

pmb.install.recovery: Assert that partitions are not None (MR 2464)

They should definitely not be None here, thus assert it so we don't need
to keep checking for None later.
parent b49da9ad
Branches
Tags
1 merge request!2464Add lots of type hints, fix some bugs, and clean up some code
......@@ -43,6 +43,13 @@ def create_zip(args: PmbArgs, chroot: Chroot, device: str):
pmb.flasher.check_partition_blacklist(deviceinfo, key, fvalue)
if (
fvars["$PARTITION_KERNEL"] is None
or fvars["$PARTITION_INITFS"] is None
or fvars["$PARTITION_ROOTFS"] is None
):
raise AssertionError("Partitions should not be None at this point")
# Create config file for the recovery installer
options = {
"DEVICE": device,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment