[yum-commits] Branch 'yum-3_2_X' - cli.py

skvidal at osuosl.org skvidal at osuosl.org
Tue Apr 21 14:36:10 UTC 2009


 cli.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit acdcf46c2597c9e8d1677bcc168f1e85f14bec0b
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Tue Apr 21 10:34:00 2009 -0400

    make sure we pass the args to the function when they exist, not when they don't
    closes rh bug #496878 original patch from Martin Gracik

diff --git a/cli.py b/cli.py
index f6ba8d3..9abf843 100644
--- a/cli.py
+++ b/cli.py
@@ -1124,7 +1124,7 @@ class YumOptionParser(OptionParser):
         
     def setupYumConfig(self, args=None):
         # Now parse the command line for real
-        if args is not None:
+        if not args:
             (opts, cmds) = self.parse_args()
         else:
             (opts, cmds) = self.parse_args(args=args)


More information about the Yum-commits mailing list