From: Christopher Larson <kergoth@gmail.com>
To: bitbake-devel <bitbake-devel@lists.openembedded.org>
Cc: Christopher Larson <chris_larson@mentor.com>
Subject: [PATCH 2/2] data_smart: allow removal of multiple words at once with _remove
Date: Tue, 27 Aug 2013 16:27:41 -0700 [thread overview]
Message-ID: <1377646061-24208-2-git-send-email-kergoth@gmail.com> (raw)
In-Reply-To: <1377646061-24208-1-git-send-email-kergoth@gmail.com>
From: Christopher Larson <chris_larson@mentor.com>
FOO = "foo bar baz"
FOO_remove = "foo baz"
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
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 6229fbf..d325018 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -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
--
1.8.3.4
prev parent reply other threads:[~2013-08-27 23:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-27 23:27 [PATCH 1/2] data_smart: use a split/filter/rejoin for _remove Christopher Larson
2013-08-27 23:27 ` Christopher Larson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1377646061-24208-2-git-send-email-kergoth@gmail.com \
--to=kergoth@gmail.com \
--cc=bitbake-devel@lists.openembedded.org \
--cc=chris_larson@mentor.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox