[Yum-devel] [PATCH] when we are setting up utils handle -q and -v as we do in cli.
Tim Lauridsen
tim.lauridsen at googlemail.com
Sat Oct 10 05:11:46 UTC 2009
On 10/09/2009 11:39 PM, Seth Vidal wrote:
> part of the fix for: https://bugzilla.redhat.com/show_bug.cgi?id=514513
> ---
> utils.py | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/utils.py b/utils.py
> index 945aa65..a053720 100644
> --- a/utils.py
> +++ b/utils.py
> @@ -82,6 +82,11 @@ class YumUtilBase(YumBaseCli):
> sys.exit(0)
> # get the install root to use
> root = self._parser.getRoot(opts)
> + if opts.quiet:
> + opts.debuglevel = 0
> + if opts.verbose:
> + opts.debuglevel = opts.errorlevel = 6
> +
> # Read up configuration options and initialise plugins
> try:
> pc = self.preconf
>
ACK
Tim
More information about the Yum-devel
mailing list