From b05b748b2153c941b95cd36fb22aaafc4dbf3791 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 16 Sep 2013 07:45:50 +0000 Subject: 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 --- lib/bb/data_smart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit 1.2.3-korg