mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
wic: use optparse instead of cmdln
cmdln.py https://pypi.python.org/pypi/cmdln was used in creator.py to parse image plugin options and arguments. There is no need in such a sofisticated API to do this simple task. Standard option parser optparse.OptionParser can do it just fine. Modified Creator class to work with option parser. Removed cmdln.py from the wic codebase. (From OE-Core rev: 1e5220f74830b99cf8340a4f6977399b5cf49871) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f1bcf47ff4
commit
e85f807b87
@@ -56,7 +56,7 @@ class DirectPlugin(ImagerPlugin):
|
||||
return krootfs_dir
|
||||
|
||||
@classmethod
|
||||
def do_create(cls, subcmd, opts, *args):
|
||||
def do_create(cls, opts, *args):
|
||||
"""
|
||||
Create direct image, called from creator as 'direct' cmd
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user