* [PATCH] ast: Store anonymous python function contents in the datstore
@ 2012-08-22 19:01 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-08-22 19:01 UTC (permalink / raw)
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 <richard.purdie@linuxfoundation.org>
---
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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-22 19:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-22 19:01 [PATCH] ast: Store anonymous python function contents in the datstore Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.