diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-16 07:45:20 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-17 14:11:04 +0100 |
commit | 385bd4410d01526ad553433de2a24f6517cd6612 (patch) | |
tree | 96b61081c749edb7a5bd2c0993c0534157f25793 /bitbake | |
parent | a61519f3fb664c9c0e14babb5e3f97f52ba912cc (diff) | |
download | openembedded-core-contrib-385bd4410d01526ad553433de2a24f6517cd6612.tar.gz |
bitbake: data_smart: Allow flags to use the expand cache
(Bitbake rev: a0122ab80df21597291ff32ff7fbaa4de0347a6f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index bc4ad54f57..054b5cbebf 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py @@ -598,6 +598,8 @@ class DataSmart(MutableMapping): cachename = None if flag == "_content": cachename = var + else: + cachename = var + "[" + flag + "]" value = self.expand(value, cachename) if value is not None and flag == "_content" and local_var is not None and "_removeactive" in local_var: filtered = filter(lambda v: v not in local_var["_removeactive"], @@ -657,7 +659,7 @@ class DataSmart(MutableMapping): continue flags[i] = local_var[i] if expand and i in expand: - flags[i] = self.expand(flags[i], None) + flags[i] = self.expand(flags[i], var + "[" + i + "]") if len(flags) == 0: return None return flags |