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