summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
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/lib/bb
parent385bd4410d01526ad553433de2a24f6517cd6612 (diff)
downloadpoky-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/lib/bb')
-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:
100 self.execs |= varparse.execs 100 self.execs |= varparse.execs
101 return varparse.value 101 return varparse.value
102 var = self.d.getVar(key, True) 102 var = self.d.getVar(key, True)
103 self.references.add(key)
103 if var is not None: 104 if var is not None:
104 self.references.add(key)
105 return var 105 return var
106 else: 106 else:
107 return match.group() 107 return match.group()