[yum-commits] debuginfo-install.py
James Antill
james at osuosl.org
Wed Jan 20 22:10:48 UTC 2010
debuginfo-install.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
New commits:
commit 1c066e5b044b0d790f8f677b2ebacd50899f2741
Author: James Antill <james at and.org>
Date: Wed Jan 20 17:10:43 2010 -0500
Put the debuginfo-install options in it's option group
diff --git a/debuginfo-install.py b/debuginfo-install.py
index 241afdb..242be65 100755
--- a/debuginfo-install.py
+++ b/debuginfo-install.py
@@ -44,11 +44,14 @@ class DebugInfoInstall(YumUtilBase):
DebugInfoInstall.VERSION,
DebugInfoInstall.USAGE)
self.logger = logging.getLogger("yum.verbose.cli.debuginfoinstall")
- # Add util commandline options to the yum-cli ones
self.optparser = self.getOptionParser()
- self.optparser.add_option("", "--no-debuginfo-plugin",
- action="store_true",
- help="Turn off automatic installation/update of the yum debuginfo plugin")
+ opt = self.optparser
+ # Add util commandline options to the yum-cli ones
+ if hasattr(self, 'getOptionGroup'):
+ opts = self.getOptionGroup()
+ opts.add_option("", "--no-debuginfo-plugin",
+ action="store_true",
+ help="Turn off automatic installation/update of the yum debuginfo plugin")
self.main()
More information about the Yum-commits
mailing list