bitbake: data_smart.py: fix variable splitting at _remove mechanism
authorStefan Müller-Klieser <s.mueller-klieser@phytec.de>
Thu, 6 Nov 2014 12:03:38 +0000 (13:03 +0100)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:52:19 +0000 (08:52 -0800)
If we split variables only at whitespaces, a slipped in tab will render
a value unremovable.

(Bitbake rev: 0da22ba3e930fbb060b31fc423fd3333ca8843a0)

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/data_smart.py

index d862308..9a42a17 100644 (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