summaryrefslogtreecommitdiffstats
path: root/lib/bb/parse/ast.py
diff options
context:
space:
mode:
authorHolger Freyther <ich@tamarin.(none)>2009-05-19 10:57:00 +0200
committerRichard Purdie <rpurdie@linux.intel.com>2010-02-12 17:59:16 +0000
commitc83e3e7a22601113493064b055f8dc4fb28ee9fa (patch)
treec1ef4f075671617053125f517f579d3f1a952fb7 /lib/bb/parse/ast.py
parent8be92b571b0cb4d7d9c0e057d6c56fcf53f40d61 (diff)
downloadbitbake-c83e3e7a22601113493064b055f8dc4fb28ee9fa.tar.gz
[parse] Move the last method to the AST...
Diffstat (limited to 'lib/bb/parse/ast.py')
-rw-r--r--lib/bb/parse/ast.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/bb/parse/ast.py b/lib/bb/parse/ast.py
index f5974f40d..ed9c689af 100644
--- a/lib/bb/parse/ast.py
+++ b/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)