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

James Antill james at osuosl.org
Wed Nov 3 15:41:46 UTC 2010


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

New commits:
commit cde9bf7bb40ca4d6a3696eff4f4cded51a7a0739
Author: James Antill <james at and.org>
Date:   Wed Nov 3 11:44:08 2010 -0400

    Don't die with zero length args (Eg. yum up '').

diff --git a/cli.py b/cli.py
index d5a85c4..c333f62 100644
--- a/cli.py
+++ b/cli.py
@@ -621,7 +621,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
         # same output.
         # if it is a grouppattern then none of this is going to make any sense
         # skip it.
-        if  arg[0] == '@':
+        if not arg or arg[0] == '@':
             return
         matches = self.doPackageLists(patterns=[arg], ignore_case=False)
         if (matches.installed or (not matches.available and


More information about the Yum-commits mailing list