summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/ast.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-22 20:01:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-23 09:22:44 +0100
commit1e59ae05c1c5215c43b2e8a5e89ad6a5d63540c1 (patch)
treebbdf3478670652552ea081cc5b6cdab2bc7a29f8 /bitbake/lib/bb/parse/ast.py
parentce682323a918e4c59d854745865b0950610ce29b (diff)
downloadpoky-1e59ae05c1c5215c43b2e8a5e89ad6a5d63540c1.tar.gz
bitbake: ast: Store anonymous python function contents in the datstore
This is useful if we need to disable part of one during a backtrace for debugging purposes. (Bitbake rev: 80a0c1b06a30a6ba9977c29fac0437a208d8cbbc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse/ast.py')
-rw-r--r--bitbake/lib/bb/parse/ast.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py
index dfc0b02245..4caa93e044 100644
--- a/bitbake/lib/bb/parse/ast.py
+++ b/bitbake/lib/bb/parse/ast.py
@@ -134,6 +134,7 @@ class MethodNode(AstNode):
134 anonfuncs = data.getVar('__BBANONFUNCS') or [] 134 anonfuncs = data.getVar('__BBANONFUNCS') or []
135 anonfuncs.append(funcname) 135 anonfuncs.append(funcname)
136 data.setVar('__BBANONFUNCS', anonfuncs) 136 data.setVar('__BBANONFUNCS', anonfuncs)
137 data.setVar(funcname, text)
137 else: 138 else:
138 data.setVarFlag(self.func_name, "func", 1) 139 data.setVarFlag(self.func_name, "func", 1)
139 data.setVar(self.func_name, text) 140 data.setVar(self.func_name, text)