[bitbake-devel] [PATCH 11/16] data_smart: Cache the fact a variable accesses another even if its unset
Richard Purdie
richard.purdie at linuxfoundation.org
Mon Sep 16 21:53:28 UTC 2013
If a variable references another but it isn't set at present, the
reference wasn't stored. It really should be marked as a reference
and the higher level dependency code can handle as appropriate.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/data_smart.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index 054b5cb..79bf331 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -100,8 +100,8 @@ class VariableParse:
self.execs |= varparse.execs
return varparse.value
var = self.d.getVar(key, True)
+ self.references.add(key)
if var is not None:
- self.references.add(key)
return var
else:
return match.group()
--
1.8.1.2
More information about the bitbake-devel
mailing list