[yum-git] Branch 'yum-3_2_X' - cli.py yum/config.py

James Antill james at linux.duke.edu
Fri Jul 25 14:43:03 UTC 2008


 cli.py        |    3 +++
 yum/config.py |    2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 470ed482364425dc456d3911c36816ae6ac23174
Author: James Antill <james at and.org>
Date:   Fri Jul 25 10:42:54 2008 -0400

    Fix typo in CaselessSelectionOption.parse()

diff --git a/cli.py b/cli.py
index d40e4b6..f11f7c2 100644
--- a/cli.py
+++ b/cli.py
@@ -1080,6 +1080,9 @@ class YumOptionParser(OptionParser):
                 self.base.conf.gpgcheck = 'false'
                 for repo in self.base.repos.listEnabled():
                     repo.gpgcheck = 'false'
+            print "JDBG:", self.base.conf.gpgcheck
+            for repo in self.base.repos.listEnabled():
+                print "JDBG: repo", repo, repo.gpgcheck
                             
         except ValueError, e:
             self.logger.critical(_('Options Error: %s'), e)
diff --git a/yum/config.py b/yum/config.py
index cab9972..6354ee3 100644
--- a/yum/config.py
+++ b/yum/config.py
@@ -348,7 +348,7 @@ class CaselessSelectionOption(SelectionOption):
         lowers input case. '''
 
     def parse(self, s):
-        return super(SelectionOption, self).parse(default, s.lower())
+        return super(CaselessSelectionOption, self).parse(s.lower())
 
 class BytesOption(Option):
 



More information about the Yum-cvs-commits mailing list