summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data_smart.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r--bitbake/lib/bb/data_smart.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index a1cbaba..9a6f767 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -35,6 +35,7 @@ import hashlib
import bb, bb.codeparser
from bb import utils
from bb.COW import COWDictBase
+import collections
logger = logging.getLogger("BitBake.Data")
@@ -88,6 +89,7 @@ class VariableParse:
self.references = set()
self.execs = set()
+ self.contains = collections.defaultdict(set)
def var_sub(self, match):
key = match.group()[2:-1]
@@ -120,6 +122,8 @@ class VariableParse:
self.references |= parser.references
self.execs |= parser.execs
+ for k in parser.contains:
+ self.contains[k].update(parser.contains[k])
value = utils.better_eval(codeobj, DataContext(self.d))
return str(value)
OpenPOWER on IntegriCloud