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-04 10:40:22 +0100 |
commit | a210e28bb3fd5433ebecf50e218fc548013b35dc (patch) | |
tree | 3cee58dbb8912c270a5bf9bea6355f3b6b9b5c77 | |
parent | 808d5dbe257d1b6faf241ee252a6ef092e4c6d3d (diff) | |
download | openembedded-core-contrib-a210e28bb3fd5433ebecf50e218fc548013b35dc.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.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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): if rules == 'auto': return {} result = {} - for rule in rules.split('-'): + for rule in rules.split(','): try: part, size = rule.split(':') except ValueError: |