From patchwork Wed Aug 22 19:01:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel] ast: Store anonymous python function contents in the datstore Date: Wed, 22 Aug 2012 19:01:55 -0000 From: Richard Purdie X-Patchwork-Id: 35157 Message-Id: <1345662115.3907.128.camel@ted> To: bitbake-devel This is useful if we need to disable part of one during a backtrace for debugging purposes. Signed-off-by: Richard Purdie --- 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)