From 46ac8684031c28399532905cdf4efed1b4584649 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Thu, 27 Oct 2011 22:45:04 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/codeparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') 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(): 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 -- cgit v1.2.3-54-g00ecf