diff options
author | Holger Freyther <ich@tamarin.(none)> | 2009-05-19 09:46:42 +0200 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-02-15 17:07:43 +0000 |
commit | d2bf3f00ea661794d2c6914fcb756a8e3d9a6039 (patch) | |
tree | eed8ea8ece44bc9ee55b1b17461fef90b9945d3d /bitbake/lib/bb/parse | |
parent | 8072cf0846db54248e912114a8604c444cecc42a (diff) | |
download | poky-d2bf3f00ea661794d2c6914fcb756a8e3d9a6039.tar.gz |
bitbake: [parse] Change handling include through the AstNode
Disable the recursively evaluating the statement for now
as it is causing problems.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/parse')
-rw-r--r-- | bitbake/lib/bb/parse/ast.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py index f587c6cbd6..b9fb37c5fa 100644 --- a/bitbake/lib/bb/parse/ast.py +++ b/bitbake/lib/bb/parse/ast.py | |||
@@ -62,7 +62,7 @@ class IncludeNode: | |||
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) |
65 | statements.eval(data) | 65 | #statements.eval(data) |
66 | 66 | ||
67 | class ExportNode: | 67 | class ExportNode: |
68 | def __init__(self, var): | 68 | def __init__(self, var): |
@@ -120,13 +120,7 @@ class DataNode: | |||
120 | def handleInclude(statements, m, fn, lineno, data, force): | 120 | def handleInclude(statements, m, fn, lineno, data, force): |
121 | # AST handling | 121 | # AST handling |
122 | statements.append(IncludeNode(m.group(1), fn, lineno, force)) | 122 | statements.append(IncludeNode(m.group(1), fn, lineno, force)) |
123 | 123 | statements[-1].eval(data) | |
124 | s = bb.data.expand(m.group(1), data) | ||
125 | bb.msg.debug(3, bb.msg.domain.Parsing, "CONF %s:%d: including %s" % (fn, lineno, s)) | ||
126 | if force: | ||
127 | bb.parse.ConfHandler.include(statements, fn, s, data, "include required") | ||
128 | else: | ||
129 | bb.parse.ConfHandler.include(statements, fn, s, data, False) | ||
130 | 124 | ||
131 | def handleExport(statements, m, data): | 125 | def handleExport(statements, m, data): |
132 | # AST handling | 126 | # AST handling |