summaryrefslogtreecommitdiffstats
path: root/lib/bb/parse/ast.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-02-12 17:45:51 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-02-12 17:59:15 +0000
commit9c97696f37499b4d0ec5c034c51e4cf6bc425ba2 (patch)
tree0c844a5a6a359dd2e82cff2b56a115e6b7888291 /lib/bb/parse/ast.py
parent08ff6da3690aa8edf270f8150517cfd433b57362 (diff)
downloadbitbake-9c97696f37499b4d0ec5c034c51e4cf6bc425ba2.tar.gz
[parser] Build fix
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'lib/bb/parse/ast.py')
-rw-r--r--lib/bb/parse/ast.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/parse/ast.py b/lib/bb/parse/ast.py
index e4a7a4d85..2a2fe1d51 100644
--- a/lib/bb/parse/ast.py
+++ b/lib/bb/parse/ast.py
@@ -58,7 +58,7 @@ class IncludeNode:
# TODO: Cache those includes...
statements = StatementGroup()
- if force:
+ if self.force:
bb.parse.ConfHandler.include(statements, self.from_fn, s, data, "include required")
else:
bb.parse.ConfHandler.include(statements, self.from_fn, s, data, False)
@@ -128,7 +128,7 @@ class MethodNode:
funcname = ("__anon_%s_%s" % (self.lineno, self.fn.translate(string.maketrans('/.+-', '____'))))
if not funcname in bb.methodpool._parsed_fns:
text = "def %s(d):\n" % (funcname) + '\n'.join(self.body)
- bb.methodpool.insert_method(funcname, text, fn)
+ bb.methodpool.insert_method(funcname, text, self.fn)
anonfuncs = bb.data.getVar('__BBANONFUNCS', data) or []
anonfuncs.append(funcname)
bb.data.setVar('__BBANONFUNCS', anonfuncs, data)