summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-04-30 14:57:18 +0100
committerArmin Kuster <akuster808@gmail.com>2019-05-08 18:36:45 -0700
commit6d86d126121cd15c7e9832b24106332ab439beeb (patch)
treee9948add9e0bf00f50b83812f2d4e628ddea92db /scripts
parent326188e1e2424bdabe9cf83a8087b5ee046aa7f6 (diff)
downloadopenembedded-core-contrib-6d86d126121cd15c7e9832b24106332ab439beeb.tar.gz
wic: change expand behaviour to match docs
The documentation says that --expand takes a comma-separated list of partition:size pairs, but the code was splitting on hyphens. Hyphens are not a transitional separator for a list of items, so change the code to reflect the documentation. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/wic2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wic b/scripts/wic
index b4b7212cfa..a3c0f731d9 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -426,7 +426,7 @@ def expandtype(rules):
if rules == 'auto':
return {}
result = {}
- for rule in rules.split('-'):
+ for rule in rules.split(','):
try:
part, size = rule.split(':')
except ValueError: