summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-21 16:25:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-22 13:59:57 +0100
commit21773a997a2a8ece3b9549c5940468c5a889ac40 (patch)
treec5de5f77369519968552d4dbf7cc2f4e51a91f75 /bitbake/lib/bb/parse
parent1a7069e97b9ec208dc3cb70f9465b65de7e0a6f9 (diff)
downloadpoky-21773a997a2a8ece3b9549c5940468c5a889ac40.tar.gz
bitbake: event/ast: Use better_exec instead of simple_exec
This improves the stacktraces dumped by bitbake when for example anonymous python functions fail. Also default to passing code strings to better_exec to match the behaviour of simple_exec to aid the transition. (Bitbake rev: 7e8205929ae953731a6854ea80b197847cff5771) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse')
-rw-r--r--bitbake/lib/bb/parse/ast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py
index 86f94636b9..b88d5f5b39 100644
--- a/bitbake/lib/bb/parse/ast.py
+++ b/bitbake/lib/bb/parse/ast.py
@@ -320,7 +320,7 @@ def finalize(fn, d, variant = None):
320 code = [] 320 code = []
321 for funcname in d.getVar("__BBANONFUNCS") or []: 321 for funcname in d.getVar("__BBANONFUNCS") or []:
322 code.append("%s(d)" % funcname) 322 code.append("%s(d)" % funcname)
323 bb.utils.simple_exec("\n".join(code), {"d": d}) 323 bb.utils.better_exec("\n".join(code), {"d": d})
324 bb.data.update_data(d) 324 bb.data.update_data(d)
325 325
326 tasklist = d.getVar('__BBTASKS') or [] 326 tasklist = d.getVar('__BBTASKS') or []