[yum-cvs] yum cli.py,1.250,1.251
James Bowes
jbowes at linux.duke.edu
Sat Feb 3 21:23:28 UTC 2007
Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv21300
Modified Files:
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.250
retrieving revision 1.251
diff -u -r1.250 -r1.251
--- cli.py 3 Feb 2007 17:09:48 -0000 1.250
+++ cli.py 3 Feb 2007 21:23:26 -0000 1.251
@@ -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