Patchwork [bitbake-devel,11/16] data_smart: Cache the fact a variable accesses another even if its unset

mail settings
Submitter Richard Purdie
Date Sept. 16, 2013, 9:53 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/58201/
State Accepted
Commit b05b748b2153c941b95cd36fb22aaafc4dbf3791
Headers show


Richard Purdie - Sept. 16, 2013, 9:53 p.m.
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 <>
 lib/bb/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/lib/bb/ b/lib/bb/
index 054b5cb..79bf331 100644
--- a/lib/bb/
+++ b/lib/bb/
@@ -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