forked from Mirror/pmbootstrap
Rename deviceinfo variable flash_methods to flash_method (#1030)
* Rename deviceinfo variable flash_methods to flash_method * Update pmb.config.deviceinfo_attributes / add sanity check * Add test case that parses all deviceinfo files
This commit is contained in:
parent
d34e8d172e
commit
c6eb56c200
91 changed files with 188 additions and 132 deletions
|
@ -24,7 +24,7 @@ def run(args, action, flavor=None):
|
|||
pmb.flasher.init(args)
|
||||
|
||||
# Verify action
|
||||
method = args.flash_method or args.deviceinfo["flash_methods"]
|
||||
method = args.flash_method or args.deviceinfo["flash_method"]
|
||||
cfg = pmb.config.flashers[method]
|
||||
if action not in cfg["actions"]:
|
||||
raise RuntimeError("action " + action + " is not"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue