[Yum-devel] [PATCH] when we are setting up utils handle -q and -v as we do in cli.
Seth Vidal
skvidal at fedoraproject.org
Fri Oct 9 21:39:27 UTC 2009
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
--
1.6.2.5
More information about the Yum-devel
mailing list