summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-16 07:45:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-17 14:09:38 +0100
commitb05b748b2153c941b95cd36fb22aaafc4dbf3791 (patch)
tree31fee25a4d53df4cc529080cdf65d4e6262454d3
parenta0122ab80df21597291ff32ff7fbaa4de0347a6f (diff)
downloadbitbake-b05b748b2153c941b95cd36fb22aaafc4dbf3791.tar.gz
data_smart: Cache the fact a variable accesses another even if its unset
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@linuxfoundation.org>
-rw-r--r--lib/bb/data_smart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index 054b5cbeb..79bf33108 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()