[oe-commits] [openembedded-core] 06/24: wic: change expand behaviour to match docs

git at git.openembedded.org git at git.openembedded.org
Mon May 20 13:39:13 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch warrior
in repository openembedded-core.

commit 6d86d126121cd15c7e9832b24106332ab439beeb
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