[oe-commits] [openembedded-core] 05/23: wic: fix type of no-table option

git at git.openembedded.org git at git.openembedded.org
Mon Mar 28 14:56:30 UTC 2016


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

commit d483724cf3515f76e1b798a2018e2f3fa2bad0ba
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Wed Mar 23 13:24:33 2016 +0200

    wic: fix type of no-table option
    
    Type of --no-table option was incorrectly set in new wks parser.
    It causes parser to require argument for this option, which makes
    wic to fail with wks files that use --no-table:
        Error: argument --no-table: expected one argument
    
    Changed action parameter to 'store_true' to fix the issue.
    
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/lib/wic/ksparser.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
index 2f1e097..8c3f808 100644
--- a/scripts/lib/wic/ksparser.py
+++ b/scripts/lib/wic/ksparser.py
@@ -113,7 +113,7 @@ class KickStart(object):
         part.add_argument('--fsoptions', dest='fsopts')
         part.add_argument('--fstype')
         part.add_argument('--label')
-        part.add_argument('--no-table')
+        part.add_argument('--no-table', action='store_true')
         part.add_argument('--ondisk', '--ondrive', dest='disk')
         part.add_argument("--overhead-factor", type=overheadtype, default=1.3)
         part.add_argument('--part-type')

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list