summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-04-30 14:57:18 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-07 10:12:53 +0100
commit74b44e59be89c738f702948f9e16e367c0ba43ba (patch)
tree4f9c6001bdfd79601a5b11c04b68ab534a3670c7 /scripts
parenta514e0f65d40ec0607acfc1254b753a0763cb44d (diff)
downloadpoky-74b44e59be89c738f702948f9e16e367c0ba43ba.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. (From OE-Core rev: a210e28bb3fd5433ebecf50e218fc548013b35dc) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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):
426 if rules == 'auto': 426 if rules == 'auto':
427 return {} 427 return {}
428 result = {} 428 result = {}
429 for rule in rules.split('-'): 429 for rule in rules.split(','):
430 try: 430 try:
431 part, size = rule.split(':') 431 part, size = rule.split(':')
432 except ValueError: 432 except ValueError: