flasher: install depends of the method specified in the arguments (#1393)

This commit is contained in:
Daniele Debernardi 2018-04-05 01:48:39 +02:00 committed by Oliver Smith
parent 82b9ea5af6
commit b7b1fe9ef7
1 changed files with 1 additions and 1 deletions

View File

@ -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 "