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
|
@ -60,4 +60,10 @@ def deviceinfo(args, device=None):
|
|||
if key not in ret:
|
||||
ret[key] = ""
|
||||
|
||||
# Sanity check: "flash_methods" is legacy
|
||||
if "flash_methods" in ret:
|
||||
raise RuntimeError("deviceinfo_flash_methods has been renamed to"
|
||||
" deviceinfo_flash_method. Please adjust your"
|
||||
" deviceinfo file: " + path)
|
||||
|
||||
return ret
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue