bitbake: data_smart: allow removal of multiple words at once with _remove
authorChristopher Larson <chris_larson@mentor.com>
Tue, 27 Aug 2013 23:27:41 +0000 (16:27 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 Aug 2013 23:34:13 +0000 (00:34 +0100)
    FOO = "foo bar baz"
    FOO_remove = "foo baz"

(Bitbake rev: 04127dec207d6dfc0ada56c5cc67ec9ad30517a8)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/data_smart.py

index 6229fbf..d325018 100644 (file)
@@ -418,7 +418,7 @@ class DataSmart(MutableMapping):
                             self.setVar(append, sval)
                         elif op == "_remove":
                             removes = self.getVarFlag(append, "_removeactive", False) or []
-                            removes.append(a)
+                            removes.extend(a.split())
                             self.setVarFlag(append, "_removeactive", removes, ignore=True)
 
                     # We save overrides that may be applied at some later stage