From: Ross Burton Date: Tue, 30 Apr 2019 13:57:18 +0000 (+0100) Subject: wic: change expand behaviour to match docs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f6d55056a1c6f9fd00b09a8e91b3e888750e793;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- diff --git a/scripts/wic b/scripts/wic index b4b7212cfa0..a3c0f731d99 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: