From: Jan Kiszka Date: Thu, 28 Feb 2019 08:47:56 +0000 (+0100) Subject: wic: Ensure that sourceparams values can contain '=' X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~15187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e59bba5ee21e9065dce86b912996b893f8946535;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git wic: Ensure that sourceparams values can contain '=' This allows '--sourceparams key1=val1=val11,key2=val2'. Signed-off-by: Jan Kiszka Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 3da7e23e617..ca206ece02f 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,