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