[oe-commits] [openembedded-core] 62/66: wic: change expand behaviour to match docs
git at git.openembedded.org
git at git.openembedded.org
Tue May 21 23:33:25 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch thud
in repository openembedded-core.
commit 8f6d55056a1c6f9fd00b09a8e91b3e888750e793
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Tue Apr 30 14:57:18 2019 +0100
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 at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
scripts/wic | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/wic b/scripts/wic
index b4b7212..a3c0f73 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:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list