From b7b1fe9ef7a1aabae80efcda8f96e2b830e03325 Mon Sep 17 00:00:00 2001 From: Daniele Debernardi Date: Thu, 5 Apr 2018 01:48:39 +0200 Subject: [PATCH] flasher: install depends of the method specified in the arguments (#1393) --- pmb/flasher/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/flasher/init.py b/pmb/flasher/init.py index 4256f7f5..f9f6b548 100644 --- a/pmb/flasher/init.py +++ b/pmb/flasher/init.py @@ -23,7 +23,7 @@ import pmb.helpers.mount def init(args): # Validate method - method = args.deviceinfo["flash_method"] + method = args.flash_method or args.deviceinfo["flash_method"] if method not in pmb.config.flashers: raise RuntimeError("Flash method " + method + " is not supported by the" " current configuration. However, adding a new flash method is "