summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Müller-Klieser <s.mueller-klieser@phytec.de>2014-11-06 13:03:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-19 10:45:34 +0000
commit0da22ba3e930fbb060b31fc423fd3333ca8843a0 (patch)
tree727a864a6991bd04ad436818a3c51ae65afccfb5
parent2ac33aac3446cb12227f1b8daa5f27f417c9bb9e (diff)
downloadbitbake-0da22ba3e930fbb060b31fc423fd3333ca8843a0.tar.gz
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. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/data_smart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index d86230835..9a42a1706 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -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