diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-16 07:45:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-17 14:11:04 +0100 |
commit | d6ac67f9afbd431ed308d6513730217cce0d689d (patch) | |
tree | 16ea74acb372d6b8f57f6100de71f1faabfc30c0 /bitbake/lib/bb | |
parent | 385bd4410d01526ad553433de2a24f6517cd6612 (diff) | |
download | poky-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.py | 2 |
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() |