bitbake: data_smart: Allow flags to use the expand cache
(Bitbake rev: a0122ab80df21597291ff32ff7fbaa4de0347a6f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a61519f3fb
commit
385bd4410d
|
@ -598,6 +598,8 @@ class DataSmart(MutableMapping):
|
||||||
cachename = None
|
cachename = None
|
||||||
if flag == "_content":
|
if flag == "_content":
|
||||||
cachename = var
|
cachename = var
|
||||||
|
else:
|
||||||
|
cachename = var + "[" + flag + "]"
|
||||||
value = self.expand(value, cachename)
|
value = self.expand(value, cachename)
|
||||||
if value is not None and flag == "_content" and local_var is not None and "_removeactive" in local_var:
|
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"],
|
filtered = filter(lambda v: v not in local_var["_removeactive"],
|
||||||
|
@ -657,7 +659,7 @@ class DataSmart(MutableMapping):
|
||||||
continue
|
continue
|
||||||
flags[i] = local_var[i]
|
flags[i] = local_var[i]
|
||||||
if expand and i in expand:
|
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:
|
if len(flags) == 0:
|
||||||
return None
|
return None
|
||||||
return flags
|
return flags
|
||||||
|
|
Loading…
Reference in New Issue