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

git at git.openembedded.org git at git.openembedded.org
Fri May 3 16:31:26 UTC 2019


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

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

commit fb70b4b3d79daee3f937a3f168b4acb671d69405
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>
---
 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