summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2022-02-14 16:45:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-16 09:46:29 +0000
commit5d16ba9078a4f90f975794a286f3845a4377cf49 (patch)
tree30c999f1dd30bcd0bc0a73339c24378a702cfff3 /scripts
parent94296651b64dadb50dd09ce420bbae98137c8e6e (diff)
downloadpoky-5d16ba9078a4f90f975794a286f3845a4377cf49.tar.gz
wic: partition: Support valueless keys in sourceparams
Accept valueless keys in sourceparams without equals sign (=) to match the comment and support Boolean entries. (From OE-Core rev: 052a9b0f7d2ee5c284cf1b4f1f45caed0489221a) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/partition.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index a25834048e..09e491dd49 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -171,7 +171,7 @@ class Partition():
171 # Split sourceparams string of the form key1=val1[,key2=val2,...] 171 # Split sourceparams string of the form key1=val1[,key2=val2,...]
172 # into a dict. Also accepts valueless keys i.e. without = 172 # into a dict. Also accepts valueless keys i.e. without =
173 splitted = self.sourceparams.split(',') 173 splitted = self.sourceparams.split(',')
174 srcparams_dict = dict(par.split('=', 1) for par in splitted if par) 174 srcparams_dict = dict((par.split('=', 1) + [None])[:2] for par in splitted if par)
175 175
176 plugin = PluginMgr.get_plugins('source')[self.source] 176 plugin = PluginMgr.get_plugins('source')[self.source]
177 plugin.do_configure_partition(self, srcparams_dict, creator, 177 plugin.do_configure_partition(self, srcparams_dict, creator,