[bitbake-devel] ast: Store anonymous python function contents in the datstore

Submitted by Richard Purdie on Aug. 22, 2012, 7:01 p.m.


Message ID 1345662115.3907.128.camel@ted
State New
Headers show

Commit Message

Richard Purdie Aug. 22, 2012, 7:01 p.m.
This is useful if we need to disable part of one during a backtrace
for debugging purposes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py
index 5367628..4e93630 100644
--- a/bitbake/lib/bb/parse/ast.py
+++ b/bitbake/lib/bb/parse/ast.py
@@ -134,6 +134,7 @@  class MethodNode(AstNode):
             anonfuncs = data.getVar('__BBANONFUNCS') or []
             data.setVar('__BBANONFUNCS', anonfuncs)
+            data.setVar(funcname, text)
             data.setVarFlag(self.func_name, "func", 1)
             data.setVar(self.func_name, text)