Skip to content

Fix for #9636: wic script should use argparse instead of optparse

Ed Bartosh openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3wic: Use argparse instead of optparsescripts/lib/wic/engine.py scripts/lib/wic/help.py scripts/wic+154 -930 replies
2/3wic: Add missing text to usage and help stringsscripts/lib/wic/help.py+1 -10 replies
3/3selftest: fix test_unsupported_subcommand test casemeta/lib/oeqa/selftest/wic.py+1 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Fix for #9636: wic script should use argparse instead of optparse

Hi,

This patchset contains two patches from Andreas J. Reichel's patchset and a fix for wic test case.

Description taken from the original patchset:

wic uses optparse and a rather complicated approach of its initialization. It is much easier to switch from the deprecated optparse to the argparse library, which also supports sub-commands, which wic heavily makes use of.

The following changes since commit 381897c64069ea43d595380a3ae913bcc79cf7e1:

build-appliance-image: Update to master head revision (2017-05-01 08:56:47 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib ed/wic/wip
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/wic/wip

Andreas J. Reichel (2):
wic: Use argparse instead of optparse
wic: Add missing text to usage and help strings

Ed Bartosh (1):
selftest: fix test_unsupported_subcommand test case

 meta/lib/oeqa/selftest/wic.py |   3 +-
 scripts/lib/wic/engine.py     |  11 ++-
 scripts/lib/wic/help.py       |  25 +++--
 scripts/wic                   | 213 ++++++++++++++++++++++++++----------------
 4 files changed, 156 insertions(+), 96 deletions(-)

--
Regards,
Ed