summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data_smart.py
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2013-08-27 16:27:41 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-28 00:34:13 +0100
commit87f413f61715f9a4e11614655b0a42f7725a3e5e (patch)
tree77bd7f8218ad135c429f3b4308a7b4e1d9d044e9 /bitbake/lib/bb/data_smart.py
parent092190e20b42cb38dd3f497dd6375f01fd973d66 (diff)
downloadpoky-87f413f61715f9a4e11614655b0a42f7725a3e5e.tar.gz
bitbake: data_smart: allow removal of multiple words at once with _remove
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>
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r--bitbake/lib/bb/data_smart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index 6229fbf693..d32501821d 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -418,7 +418,7 @@ class DataSmart(MutableMapping):
418 self.setVar(append, sval) 418 self.setVar(append, sval)
419 elif op == "_remove": 419 elif op == "_remove":
420 removes = self.getVarFlag(append, "_removeactive", False) or [] 420 removes = self.getVarFlag(append, "_removeactive", False) or []
421 removes.append(a) 421 removes.extend(a.split())
422 self.setVarFlag(append, "_removeactive", removes, ignore=True) 422 self.setVarFlag(append, "_removeactive", removes, ignore=True)
423 423
424 # We save overrides that may be applied at some later stage 424 # We save overrides that may be applied at some later stage