[Yum-devel] [PATCH 2/2] Always try searchNames() in rpm, because .dbMatch('name') is so damn fast

James Antill james at and.org
Fri Jun 4 15:36:02 UTC 2010


---
 yum/rpmsack.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yum/rpmsack.py b/yum/rpmsack.py
index fd7cc1f..28106d6 100644
--- a/yum/rpmsack.py
+++ b/yum/rpmsack.py
@@ -458,7 +458,7 @@ class RPMDBPackageSack(PackageSackBase):
 
         #  See if we can load the "patterns" via. dbMatch('name', ...) because
         # that's basically instant and walking the entire rpmdb isn't.
-        if not self._completely_loaded and patterns and not ignore_case:
+        if not self._completely_loaded and patterns:
             ret = []
             for pat in patterns:
                 #  We aren't wasting anything here, because the next bit
-- 
1.7.0.1



More information about the Yum-devel mailing list