[yum-cvs] yum cli.py,1.241.2.12,1.241.2.13

James Bowes jbowes at linux.duke.edu
Sat Feb 3 21:33:42 UTC 2007


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

Modified Files:
      Tag: yum-3_0_X
	cli.py 
Log Message:
Apply patch from David Lutterkort for speedup of yum install

Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.241.2.12
retrieving revision 1.241.2.13
diff -u -r1.241.2.12 -r1.241.2.13
--- cli.py	3 Feb 2007 17:09:27 -0000	1.241.2.12
+++ cli.py	3 Feb 2007 21:33:40 -0000	1.241.2.13
@@ -538,7 +538,6 @@
         
         self.doRepoSetup()
         self.doRpmDBSetup()
-        avail = self.pkgSack.returnPackages()
         toBeInstalled = {} # keyed on name
         passToUpdate = [] # list of pkgtups to pass along to updatecheck
 
@@ -551,8 +550,8 @@
                          # no matter what we don't go looking at repos
 
             arglist = [arg]
-            exactmatch, matched, unmatched = parsePackages(avail, arglist, 
-                                                               casematch=1)
+            exactmatch, matched, unmatched = \
+                    self.pkgSack.matchPackageNames(arglist)
             if len(unmatched) > 0: # if we get back anything in unmatched, check it for a virtual-provide
                 arg = unmatched[0] #only one in there
                 self.verbose_logger.debug('Checking for virtual provide or file-provide for %s', 
@@ -565,7 +564,7 @@
                     arg = '%s:%s-%s-%s.%s' % (mypkg.epoch, mypkg.name,
                                               mypkg.version, mypkg.release,
                                               mypkg.arch)
-                    emtch, mtch, unmtch = parsePackages(avail, [arg])
+                    emtch, mtch, unmtch = self.pkgSack.matchPackageNames([arg])
                     exactmatch.extend(emtch)
                     matched.extend(mtch)
             




More information about the Yum-cvs-commits mailing list