bitbake: data_smart.py: fix variable splitting at _remove mechanism

If we split variables only at whitespaces, a slipped in tab will render
a value unremovable.

(Bitbake rev: 9f171ea755644ecd9d2b3d7ed13bf8ec09ec917a)

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Stefan Müller-Klieser 2014-11-06 13:03:38 +01:00 committed by Richard Purdie
parent 01a61c8e6e
commit 2f17b2ce7f
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ class DataSmart(MutableMapping):
if value and flag == "_content" and local_var is not None and "_removeactive" in local_var:
removes = [self.expand(r) for r in local_var["_removeactive"]]
filtered = filter(lambda v: v not in removes,
value.split(" "))
value.split())
value = " ".join(filtered)
if expand:
# We need to ensure the expand cache has the correct value