From: Richard Purdie Date: Wed, 22 Aug 2012 19:01:55 +0000 (+0100) Subject: bitbake: ast: Store anonymous python function contents in the datstore X-Git-Tag: rev_ivi_2015_02_04~15873 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b260bd1319cb2d35fbdbfbe1ef8ff849586ed8e9;p=scm%2Fbb%2Ftizen-distro.git 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 --- diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py index dfc0b02..4caa93e 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)