cyberpear / rpms / dnf

Forked from rpms/dnf 4 years ago
Clone
Blob Blame History Raw
From ba21747031cac8abb690de907f226b78cc7a7cb0 Mon Sep 17 00:00:00 2001
From: Michal Luscon <mluscon@redhat.com>
Date: Thu, 24 Sep 2015 11:22:49 +0200
Subject: [PATCH] Automatic commit of package [dnf] release [1.1.2-3].

Revert "completion_helper: don't get IndexError (RhBug:1250038)"
---
 dnf/cli/cli.py | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py
index 034c28a..277176e 100644
--- a/dnf/cli/cli.py
+++ b/dnf/cli/cli.py
@@ -1088,17 +1088,7 @@ class Cli(object):
             2 = we've got work yet to do, onto the next stage
         """
         self._process_demands()
-        classTuple = (dnf.cli.commands.ListCommand,
-            dnf.cli.commands.repolist.RepoListCommand,
-            dnf.cli.commands.clean.CleanCommand,
-            dnf.cli.commands.HistoryCommand)
-        if isinstance(self.command, classTuple):
-            if len(self.base.extcmds) > 1:
-                return self.command.run(self.base.extcmds)
-        else:
-            if len(self.base.extcmds) > 0:
-                return self.command.run(self.base.extcmds)
-        return
+        return self.command.run(self.base.extcmds)
 
     def print_usage(self):
         return self.optparser.print_usage()
-- 
2.4.3