]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: change expand behaviour to match docs
authorRoss Burton <ross.burton@intel.com>
Tue, 30 Apr 2019 13:57:18 +0000 (14:57 +0100)
committerArmin Kuster <akuster808@gmail.com>
Thu, 9 May 2019 01:36:45 +0000 (18:36 -0700)
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>
scripts/wic

index b4b7212cfa020ae2d83e911d1f3e14f42a09aeaa..a3c0f731d99a93f1366e5c57538d030f64dc0dad 100755 (executable)
@@ -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: