diff options
author | Christopher Larson <kergoth@gmail.com> | 2011-10-27 22:45:04 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-30 16:16:11 +0000 |
commit | 46ac8684031c28399532905cdf4efed1b4584649 (patch) | |
tree | 2a3c124d869b0ffcb328207ed93fd3f29168c0b3 /bitbake/lib/bb | |
parent | 6e1105e1e8764eded2d0dff47fe095b81db75aa1 (diff) | |
download | poky-46ac8684031c28399532905cdf4efed1b4584649.tar.gz |
codeparser: make var_expands actually hold useful information
Previously, it was calling var_expands.update() rather than add(), with
a string argument, resulting in adding each character of that string to
the var_expands set, rather than the string itself.
(Bitbake rev: 8e4e75383e43d6da2c16ec5286186a0d0569b0f8)
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/codeparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py index 83bbb927a0..0dd9a365ee 100644 --- a/bitbake/lib/bb/codeparser.py +++ b/bitbake/lib/bb/codeparser.py | |||
@@ -227,7 +227,7 @@ class PythonParser(): | |||
227 | elif self.compare_name(self.expands, node.func): | 227 | elif self.compare_name(self.expands, node.func): |
228 | if isinstance(node.args[0], ast.Str): | 228 | if isinstance(node.args[0], ast.Str): |
229 | self.warn(node.func, node.args[0]) | 229 | self.warn(node.func, node.args[0]) |
230 | self.var_expands.update(node.args[0].s) | 230 | self.var_expands.add(node.args[0].s) |
231 | elif isinstance(node.args[0], ast.Call) and \ | 231 | elif isinstance(node.args[0], ast.Call) and \ |
232 | self.compare_name(self.getvars, node.args[0].func): | 232 | self.compare_name(self.getvars, node.args[0].func): |
233 | pass | 233 | pass |