[yum-commits] Branch 'yum-3_2_X' - cli.py
James Antill
james at osuosl.org
Fri Apr 1 14:25:50 UTC 2011
cli.py | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit f5ff40328625ed234f130591f4789fbb834b722f
Author: James Antill <james at and.org>
Date: Fri Apr 1 10:25:19 2011 -0400
Don't display the 'Ignore option' warning with --version. BZ 692866.
diff --git a/cli.py b/cli.py
index 1b7d7e6..dd6f5c7 100644
--- a/cli.py
+++ b/cli.py
@@ -256,6 +256,10 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
# apply some of the options to self.conf
(opts, self.cmds) = self.optparser.setupYumConfig(args=args)
+ if opts.version:
+ opts.quiet = True
+ opts.verbose = False
+
# Check that firstParse didn't miss anything, and warn the user if it
# did ... because this is really magic, and unexpected.
if opts.quiet:
More information about the Yum-commits
mailing list