[OE-core] [PATCH 06/23] wic: change expand behaviour to match docs

Armin Kuster akuster808 at gmail.com
Tue May 14 04:53:48 UTC 2019


From: Ross Burton <ross.burton at intel.com>

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:
-- 
2.7.4



More information about the Openembedded-core mailing list