]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
codeparser: make var_expands actually hold useful information
authorChristopher Larson <kergoth@gmail.com>
Fri, 28 Oct 2011 05:45:04 +0000 (22:45 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 Nov 2011 15:43:26 +0000 (15:43 +0000)
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>
bitbake/lib/bb/codeparser.py

index 83bbb927a07f2382746a1c80ba237e0bc22b9c5f..0dd9a365eeabbbf99b71852c6e73a6a8d0d23c94 100644 (file)
@@ -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