deviceinfo: flash_fastboot_vendor_id is legacy (!1818)

This commit is contained in:
Oliver Smith 2019-09-26 22:43:54 +02:00
parent 7b8dc01d9e
commit a791bf4ecb
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 9 additions and 0 deletions

View File

@ -45,6 +45,15 @@ def sanity_check(info, path):
" delete the deviceinfo_msm_refresher line in: " +
path)
# "flash_fastboot_vendor_id" is legacy
if "flash_fastboot_vendor_id" in info:
raise RuntimeError("Fastboot doesn't allow specifying the vendor ID"
" anymore (#1830). Try removing the"
" 'deviceinfo_flash_fastboot_vendor_id' line in: " +
path + " (if you are sure that you need this, then"
" we can probably bring it back to fastboot, just"
" let us know in the postmarketOS issues!)")
# "codename" is required
codename = os.path.basename(os.path.dirname(path)).replace("device-", "")
if "codename" not in info or info["codename"] != codename: