From a210e28bb3fd5433ebecf50e218fc548013b35dc 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. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- scripts/wic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 1.2.3-korg