---
 utils.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/utils.py b/utils.py
index dc5b122..65948b9 100644
--- a/utils.py
+++ b/utils.py
@@ -203,7 +203,8 @@ class YumUtilBase(YumBaseCli):
         # Now parse the command line for real and 
         # apply some of the options to self.conf
         (opts, self.cmds) = self._parser.setupYumConfig()
-        self.basecmd = self.cmds[0] # our base command
+        if self.cmds:
+            self.basecmd = self.cmds[0] # our base command
         self.extcmds = self.cmds[1:] # out extended arguments/commands
 
         return opts
-- 
1.6.5.2

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to