summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
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-15 17:07:45 +0000
commit7cfe3a5e1548c97de8842cfffa8cecc0c6b01690 (patch)
tree298baa34c25cd315e7af4120cee17b0b47f57f98 /bitbake/lib/bb
parent8eaaf663ba383262cd27100cf80bda14198e1681 (diff)
downloadpoky-7cfe3a5e1548c97de8842cfffa8cecc0c6b01690.tar.gz
bitbake: [parser] Build fix
(Bitbake rev: 9c97696f37499b4d0ec5c034c51e4cf6bc425ba2) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/parse/ast.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py
index e4a7a4d857..2a2fe1d519 100644
--- a/bitbake/lib/bb/parse/ast.py
+++ b/bitbake/lib/bb/parse/ast.py
@@ -58,7 +58,7 @@ class IncludeNode:
58 58
59 # TODO: Cache those includes... 59 # TODO: Cache those includes...
60 statements = StatementGroup() 60 statements = StatementGroup()
61 if force: 61 if self.force:
62 bb.parse.ConfHandler.include(statements, self.from_fn, s, data, "include required") 62 bb.parse.ConfHandler.include(statements, self.from_fn, s, data, "include required")
63 else: 63 else:
64 bb.parse.ConfHandler.include(statements, self.from_fn, s, data, False) 64 bb.parse.ConfHandler.include(statements, self.from_fn, s, data, False)
@@ -128,7 +128,7 @@ class MethodNode:
128 funcname = ("__anon_%s_%s" % (self.lineno, self.fn.translate(string.maketrans('/.+-', '____')))) 128 funcname = ("__anon_%s_%s" % (self.lineno, self.fn.translate(string.maketrans('/.+-', '____'))))
129 if not funcname in bb.methodpool._parsed_fns: 129 if not funcname in bb.methodpool._parsed_fns:
130 text = "def %s(d):\n" % (funcname) + '\n'.join(self.body) 130 text = "def %s(d):\n" % (funcname) + '\n'.join(self.body)
131 bb.methodpool.insert_method(funcname, text, fn) 131 bb.methodpool.insert_method(funcname, text, self.fn)
132 anonfuncs = bb.data.getVar('__BBANONFUNCS', data) or [] 132 anonfuncs = bb.data.getVar('__BBANONFUNCS', data) or []
133 anonfuncs.append(funcname) 133 anonfuncs.append(funcname)
134 bb.data.setVar('__BBANONFUNCS', anonfuncs, data) 134 bb.data.setVar('__BBANONFUNCS', anonfuncs, data)