Add "flash_fastboot_vendor_id" deviceinfo variable for fastboot flash method (#857)

This commit is contained in:
drebrez 2017-11-04 00:20:55 +01:00 committed by Oliver Smith
parent e735be93e4
commit 6fb5b28e2f
3 changed files with 13 additions and 7 deletions

View file

@ -39,7 +39,7 @@ def run(args, action, flavor=None):
for key, value in vars.items():
for i in range(len(command)):
if key in command[i]:
if not value and key != "$KERNEL_CMDLINE":
if not value and key not in ["$KERNEL_CMDLINE", "$VENDOR_ID"]:
raise RuntimeError("Variable " + key + " found in"
" action " + action + " for method " + method + ","
" but the value for this variable is None! Is that"