From: Ross Burton Date: Tue, 30 Apr 2019 13:57:18 +0000 (+0100) Subject: wic: change expand behaviour to match docs X-Git-Tag: 2018-10.4-thud~93 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=8f6d55056a1c6f9fd00b09a8e91b3e888750e793;p=openembedded-core.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 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: