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

login
register
mail settings
Submitter Richard Purdie
Date Aug. 22, 2012, 7:01 p.m.
Message ID <1345662115.3907.128.camel@ted>
Download mbox | patch
Permalink /patch/35157/
State New
Headers show

Comments

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

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 []
             anonfuncs.append(funcname)
             data.setVar('__BBANONFUNCS', anonfuncs)
+            data.setVar(funcname, text)
         else:
             data.setVarFlag(self.func_name, "func", 1)
             data.setVar(self.func_name, text)