summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/__init__.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-02-07 09:45:43 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-07 14:50:09 +0000
commite8f4e06e762670c6e451dc4028be7c3cccd71c46 (patch)
tree6d21e2eef3ca6a14d8e3a33d9d32956b3502dbd6 /scripts/lib/devtool/__init__.py
parente0a94f2e1fe1e3f6f169ac4eaee6fe5dbfc7eaa2 (diff)
downloadpoky-e8f4e06e762670c6e451dc4028be7c3cccd71c46.tar.gz
devtool: improve parse failure handling
With the move to tinfoil2, the behaviour when parsing failed has changed a bit - exceptions are now raised, so handle these appropriately. Specifically when if parsing the recipe created when running devtool add fails, rename it to .bb.parsefailed so that the user can run bitbake afterwards without parsing being interrupted. (From OE-Core rev: b9592bd3c1ab2155b9f62d18ce593b9c88eff279) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/__init__.py')
-rw-r--r--scripts/lib/devtool/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py
index fd2f042ba5..91111e1109 100644
--- a/scripts/lib/devtool/__init__.py
+++ b/scripts/lib/devtool/__init__.py
@@ -135,7 +135,12 @@ def parse_recipe(config, tinfoil, pn, appends, filter_workspace=True):
135 not path.startswith(config.workspace_path)] 135 not path.startswith(config.workspace_path)]
136 else: 136 else:
137 append_files = None 137 append_files = None
138 return tinfoil.parse_recipe_file(recipefile, appends, append_files) 138 try:
139 rd = tinfoil.parse_recipe_file(recipefile, appends, append_files)
140 except Exception as e:
141 logger.error(str(e))
142 return None
143 return rd
139 144
140def check_workspace_recipe(workspace, pn, checksrc=True, bbclassextend=False): 145def check_workspace_recipe(workspace, pn, checksrc=True, bbclassextend=False):
141 """ 146 """