[Yum-devel] [PATCH/RFC] Reduce the likelihood of needing filelists

Jeremy Katz katzj at redhat.com
Wed May 16 14:03:23 UTC 2007


On Wed, 2007-05-16 at 09:59 -0400, Jeremy Katz wrote:
> On Wed, 2007-05-16 at 00:23 -0400, seth vidal wrote:
> > I'm being a bit dense, I think. Where does this patch end up checking
> > all the file provides? It looks like it only every checks simpleFiles()
> > which is only ever from primary. Is there more to this that I'm missing
> > b/c it seems like we're dropping all of the other files from the
> > provides search in the depsolve?
> 
> We check to see if anything requires the files in the package being
> removed; if so, we do _requiringFromInstalled (or similar) with the
> file.  That ends up checking to see if anything in the pkgSack provides
> the file which downloads the full file lists.

Note that this is similar to what we were doing in 3.1.4 (or
thereabouts) when things got really slow; the thing that works in our
favor here is that the majority of the file requires do fall into the
simple case and so we can weed them out.

The next optimization here is to keep track of what files _are_ required
so that we don't ask the rpmdb to see if lots of files in /usr/share are
required by anything.

Jeremy




More information about the Yum-devel mailing list