Skip to contentSkip to conversation

Christopher Larson : codeparser: make var_expands actually hold useful information

PATCH [email protected] 1 participant 1 message Oct 28, 2011

lore
Share & tools
lore
#0 lore raw
Module: bitbake.git
Branch: master
Commit: 8e4e75383e43d6da2c16ec5286186a0d0569b0f8
URL:    http://git.openembedded.org/?p=bitbake.git&a=commit;h=8e4e75383e43d6da2c16ec5286186a0d0569b0f8
Author: Christopher Larson <[email protected]>
Date:   Thu Oct 27 22:45:04 2011 -0700

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.

---

 lib/bb/codeparser.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/bb/codeparser.py +1 -1
index 83bbb92..0dd9a36 100644
@@ -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