summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorChristopher Larson <kergoth@gmail.com>2011-10-27 22:45:04 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-04 15:43:26 +0000
commit925184a2a7e6f01826c7792daf36603f8c5947aa (patch)
tree3863a440b759cfe566f50c1e9288a10a99cea586 /bitbake
parent53b3b40b1fd85f843212cd25055dba1cde91103f (diff)
downloadast2050-yocto-poky-925184a2a7e6f01826c7792daf36603f8c5947aa.zip
ast2050-yocto-poky-925184a2a7e6f01826c7792daf36603f8c5947aa.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')
-rw-r--r--bitbake/lib/bb/codeparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py
index 83bbb92..0dd9a36 100644
--- a/bitbake/lib/bb/codeparser.py
+++ b/bitbake/lib/bb/codeparser.py
@@ -227,7 +227,7 @@ class PythonParser():
elif self.compare_name(self.expands, node.func):
if isinstance(node.args[0], ast.Str):
self.warn(node.func, node.args[0])
- self.var_expands.update(node.args[0].s)
+ self.var_expands.add(node.args[0].s)
elif isinstance(node.args[0], ast.Call) and \
self.compare_name(self.getvars, node.args[0].func):
pass
OpenPOWER on IntegriCloud