mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02: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: a210e28bb3fd5433ebecf50e218fc548013b35dc) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a514e0f65d
commit
74b44e59be
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user