From c965cb80ed1147471e4c6e4b419a95ce0a7c1298 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 30 Apr 2019 14:57:18 +0100 Subject: 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: 8f6d55056a1c6f9fd00b09a8e91b3e888750e793) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster Signed-off-by: Richard Purdie --- scripts/wic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3-54-g00ecf