From a791bf4ecb92cf7ecf2d81baf46c54cd8a807691 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Thu, 26 Sep 2019 22:43:54 +0200 Subject: [PATCH] deviceinfo: flash_fastboot_vendor_id is legacy (!1818) --- pmb/parse/deviceinfo.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pmb/parse/deviceinfo.py b/pmb/parse/deviceinfo.py index 81ea6d71..b38de27b 100644 --- a/pmb/parse/deviceinfo.py +++ b/pmb/parse/deviceinfo.py @@ -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: