[bitbake-devel] [PATCH 1/1] data_smart.py: fix variable splitting at _remove mechanism

Stefan Müller-Klieser s.mueller-klieser at phytec.de
Thu Nov 6 12:03:38 UTC 2014


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 at phytec.de>
---
 lib/bb/data_smart.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index d862308..9a42a17 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
-- 
1.9.1




More information about the bitbake-devel mailing list