From e8ed1454aec700fa4553c68123cdaec36bb23e45 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 3 Sep 2010 16:04:26 +0100 Subject: bitbake/ast: Ensure function definitions are always added to the dictonary Signed-off-by: Richard Purdie --- bitbake/lib/bb/parse/ast.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bitbake/lib/bb/parse') diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py index 3c341b0c7..b80056943 100644 --- a/bitbake/lib/bb/parse/ast.py +++ b/bitbake/lib/bb/parse/ast.py @@ -147,12 +147,12 @@ class PythonMethodNode(AstNode): # Note we will add root to parsedmethods after having parse # 'this' file. This means we will not parse methods from # bb classes twice + text = '\n'.join(self.body) if not bb.methodpool.parsed_module(self.root): - text = '\n'.join(self.body) bb.methodpool.insert_method(self.root, text, self.fn) - bb.data.setVarFlag(self.func_name, "func", 1, data) - bb.data.setVarFlag(self.func_name, "python", 1, data) - bb.data.setVar(self.func_name, text, data) + bb.data.setVarFlag(self.func_name, "func", 1, data) + bb.data.setVarFlag(self.func_name, "python", 1, data) + bb.data.setVar(self.func_name, text, data) class MethodFlagsNode(AstNode): def __init__(self, key, m): -- cgit v1.2.3