diff --git a/pmb/flasher/run.py b/pmb/flasher/run.py index ad106f8a..9c9fde8c 100644 --- a/pmb/flasher/run.py +++ b/pmb/flasher/run.py @@ -50,11 +50,11 @@ def run(args, action, flavor=None): " in deviceinfo file. See also:" " ") - + if args.no_reboot and ("flash" not in action or method != "heimdall-bootimg"): raise RuntimeError("The '--no-reboot' option is only" " supported when flashing with heimall-bootimg.") - + if args.resume and ("flash" not in action or method != "heimdall-bootimg"): raise RuntimeError("The '--resume' option is only" " supported when flashing with heimall-bootimg.") diff --git a/pmb/flasher/variables.py b/pmb/flasher/variables.py index 80e047a0..4fddf540 100644 --- a/pmb/flasher/variables.py +++ b/pmb/flasher/variables.py @@ -61,7 +61,7 @@ def variables(args, flavor, method): _dtb = "" if args.deviceinfo["append_dtb"] == "true": _dtb = "-dtb" - + _no_reboot = "" if getattr(args, 'no_reboot', False): _no_reboot = "--no-reboot"