[yum-cvs] yum/yum packageSack.py,1.18.2.1,1.18.2.2

James Bowes jbowes at linux.duke.edu
Sun Dec 3 15:56:54 UTC 2006


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv27963/yum

Modified Files:
      Tag: yum-3_0_X
	packageSack.py 
Log Message:
Re-enable using sack.searchAll in the provides command. This really speeds up
things, since we'll pull fewer filelists for packages out of the db. Looks like
this broke when the metasack was introduced. oops. ;)


Index: packageSack.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/packageSack.py,v
retrieving revision 1.18.2.1
retrieving revision 1.18.2.2
diff -u -r1.18.2.1 -r1.18.2.2
--- packageSack.py	13 Oct 2006 01:25:02 -0000	1.18.2.1
+++ packageSack.py	3 Dec 2006 15:56:51 -0000	1.18.2.2
@@ -136,6 +136,9 @@
     def searchPackages(self, fields, criteria_re, callback):
         raise NotImplementedError()
 
+    def searchAll(self, arg, query_type):
+        raise NotImplementedError()
+    
     def matchPackageNames(self, input, casematch=False):
         """take a user strings and match the packages in the sack against it
            this will match against:
@@ -314,6 +317,9 @@
     def searchPackages(self, fields, criteria_re, callback):
         return self._computeAggregateDictResult("searchPackages", fields, criteria_re, callback)
 
+    def searchAll(self, arg, query_type):
+        return self._computeAggregateListResult("searchAll", arg, query_type)
+
     def _computeAggregateListResult(self, methodName, *args):
         result = []
         for sack in self.sacks.values():




More information about the Yum-cvs-commits mailing list