[Yum-devel] [PATCH] add a check to _checkMaybeYouMeant() to skip the lookup for things starting with @ since htey are groups and none of our checks intelligently check that anyway.

Seth Vidal skvidal at fedoraproject.org
Mon Nov 1 16:01:25 UTC 2010


---
 cli.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/cli.py b/cli.py
index b3b760e..d5a85c4 100644
--- a/cli.py
+++ b/cli.py
@@ -619,6 +619,10 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
             to not being installed, tell the user. """
         # always_output is a wart due to update/remove not producing the
         # same output.
+        # if it is a grouppattern then none of this is going to make any sense
+        # skip it.
+        if  arg[0] == '@':
+            return
         matches = self.doPackageLists(patterns=[arg], ignore_case=False)
         if (matches.installed or (not matches.available and
                                   self.returnInstalledPackagesByDep(arg))):
-- 
1.7.2.1



More information about the Yum-devel mailing list