From: Holger Freyther Date: Tue, 19 May 2009 08:57:00 +0000 (+0200) Subject: bitbake: [parse] Move the last method to the AST... X-Git-Tag: 2011-1~6211 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=3f1ca0a0862c2b2bb72158c858810b1edeb0b00b;p=openembedded-core.git bitbake: [parse] Move the last method to the AST... Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py index f5974f40d2..ed9c689afa 100644 --- a/bitbake/lib/bb/parse/ast.py +++ b/bitbake/lib/bb/parse/ast.py @@ -250,6 +250,14 @@ class BBHandlerNode: bbhands.append(h) bb.data.setVarFlag(h, "handler", 1, data) bb.data.setVar('__BBHANDLERS', bbhands, data) + +class InheritNode: + def __init__(self, files): + self.n = __word__.findall(files) + + def eval(self, data): + statements = StatementGroup() + bb.parse.BBHandler.inherit(statements, self.n, data) def handleInclude(statements, m, fn, lineno, data, force): # AST handling @@ -301,7 +309,8 @@ def handleBBHandlers(statements, m, d): def handleInherit(statements, m, d): files = m.group(1) n = __word__.findall(files) - bb.parse.BBHandler.inherit(statements, n, d) + statements.append(InheritNode(m.group(1))) + statements[-1].eval(d) def finalise(fn, d): bb.data.expandKeys(d)