mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
fa3daedf7c
commit
c965cb80ed
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user