diff options
author | Ross Burton <ross.burton@intel.com> | 2019-04-30 14:57:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-22 00:31:49 +0100 |
commit | c965cb80ed1147471e4c6e4b419a95ce0a7c1298 (patch) | |
tree | 2d8af7da901345c9009a8f6ac9bccc0c91bdc628 /scripts/wic | |
parent | fa3daedf7c9e4cc2cbe425ac4a884dcb7e52abb1 (diff) | |
download | poky-c965cb80ed1147471e4c6e4b419a95ce0a7c1298.tar.gz |
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 <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-x | scripts/wic | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
426 | if rules == 'auto': | 426 | if rules == 'auto': |
427 | return {} | 427 | return {} |
428 | result = {} | 428 | result = {} |
429 | for rule in rules.split('-'): | 429 | for rule in rules.split(','): |
430 | try: | 430 | try: |
431 | part, size = rule.split(':') | 431 | part, size = rule.split(':') |
432 | except ValueError: | 432 | except ValueError: |