diff options
author | Ross Burton <ross.burton@intel.com> | 2019-04-30 14:57:18 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-05-17 21:55:22 -0700 |
commit | 8f6d55056a1c6f9fd00b09a8e91b3e888750e793 (patch) | |
tree | e90f58400a14df334f5f63dab7bc7acab20d92cb | |
parent | 7dbaaf8a823527a3523187327f5b0885fc682510 (diff) | |
download | openembedded-core-8f6d55056a1c6f9fd00b09a8e91b3e888750e793.tar.gz openembedded-core-8f6d55056a1c6f9fd00b09a8e91b3e888750e793.tar.bz2 openembedded-core-8f6d55056a1c6f9fd00b09a8e91b3e888750e793.zip |
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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-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: |