summaryrefslogtreecommitdiffstats
path: root/lib/bb/parse/ast.py
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:51:40 +0100
commit7e8205929ae953731a6854ea80b197847cff5771 (patch)
tree92aef04666e3da8a9ec25c8f49cdbc5317172513 /lib/bb/parse/ast.py
parent65a5845ac942d0aa6838c295e41b656f9d2a98bb (diff)
downloadopenembedded-core-contrib-7e8205929ae953731a6854ea80b197847cff5771.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/parse/ast.py')
-rw-r--r--lib/bb/parse/ast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/parse/ast.py b/lib/bb/parse/ast.py
index 86f94636b9..b88d5f5b39 100644
--- a/lib/bb/parse/ast.py
+++ b/lib/bb/parse/ast.py
@@ -320,7 +320,7 @@ def finalize(fn, d, variant = None):
code = []
for funcname in d.getVar("__BBANONFUNCS") or []:
code.append("%s(d)" % funcname)
- bb.utils.simple_exec("\n".join(code), {"d": d})
+ bb.utils.better_exec("\n".join(code), {"d": d})
bb.data.update_data(d)
tasklist = d.getVar('__BBTASKS') or []