pkgman: Add --debug option for most commands

Operating Systems / Haiku - Ingo Weinhold [gmx.de] - 25 October 2014 17:19 UTC

- Add CommonOptions class and add an instance to Command. It supports a debug level.
- full-sync, install, search, uninstall, update: Add option --debug. This allows getting some debug output from the solver in cases where the result seems weird.

dd15db9 pkgman: Add --debug option for most commands
src/bin/pkgman/Command.cpp | 1 +
src/bin/pkgman/Command.h | 5 ++++
src/bin/pkgman/CommonOptions.cpp | 45 ++++++++++++++++++++++++++++++++++
src/bin/pkgman/CommonOptions.h | 35 ++++++++++++++++++++++++++
src/bin/pkgman/Jamfile | 1 +
src/bin/pkgman/command_full_sync.cpp | 8 ++++++
src/bin/pkgman/command_install.cpp | 8 ++++++
src/bin/pkgman/command_search.cpp | 8 ++++++
src/bin/pkgman/command_uninstall.cpp | 8 ++++++
src/bin/pkgman/command_update.cpp | 8 ++++++
10 files changed, 127 insertions(+)

Upstream: cgit.haiku-os.org


  • Share