aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake
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:11:04 +0100
commitd6ac67f9afbd431ed308d6513730217cce0d689d (patch)
tree16ea74acb372d6b8f57f6100de71f1faabfc30c0 /bitbake
parent385bd4410d01526ad553433de2a24f6517cd6612 (diff)
downloadopenembedded-core-contrib-d6ac67f9afbd431ed308d6513730217cce0d689d.tar.gz
bitbake: 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. (Bitbake rev: b05b748b2153c941b95cd36fb22aaafc4dbf3791) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/data_smart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index 054b5cbebf..79bf331082 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/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()