[oe-commits] [openembedded-core] 07/12: wic: Ensure that sourceparams values can contain '='

git at git.openembedded.org git at git.openembedded.org
Thu Feb 28 13:37:34 UTC 2019

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 397b582f3ff4280279314f1dfc4acb525681436c
Author: Jan Kiszka <jan.kiszka at siemens.com>
AuthorDate: Thu Feb 28 09:47:56 2019 +0100

    wic: Ensure that sourceparams values can contain '='
    This allows '--sourceparams key1=val1=val11,key2=val2'.
    Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
 scripts/lib/wic/partition.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index 3da7e23..ca206ec 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -173,7 +173,7 @@ class Partition():
             # Split sourceparams string of the form key1=val1[,key2=val2,...]
             # into a dict.  Also accepts valueless keys i.e. without =
             splitted = self.sourceparams.split(',')
-            srcparams_dict = dict(par.split('=') for par in splitted if par)
+            srcparams_dict = dict(par.split('=', 1) for par in splitted if par)
         plugin = PluginMgr.get_plugins('source')[self.source]
         plugin.do_configure_partition(self, srcparams_dict, creator,

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list