[Yum-devel] Re: Speeding up depsolving

Gijs Hollestelle gijs at gewis.nl
Wed Apr 25 18:09:59 UTC 2007


On 4/25/07, Gijs Hollestelle <gijs at gewis.nl> wrote:
> On 4/25/07, Jeremy Katz <katzj at redhat.com> wrote:
> > Okay, simpler case is cpio.
> >
> > What's happening is that I have multiple kernels installed.  We
> > overwrite the kernel provs in goneprovs and thus only check with one of
> > their provides, not both.  Which then leads to results which leave out
> > the fact that libraw1394 depends on the newer of the two kernels I have
> > installed.
> Good catch!
>
> I've updated the patch. Now instead of constructing goneprovs and
> gonefiles as dicts with goneprovs[name] = prov
> I do goneprovs[prov] = 1 and when we need the name we get it as
> prov[0] this avoids the issue you mentioned and probably saves a few
> bytes of memory as well ;-)
Looks like I jumped the gun there.. there was a reason the hash was
built up as it was..

I did it the right way now, goneprovs[name] is now a list of provs. So
in the kernel case goneprovs[kernel] will be ['prov1','prov2'].

Attached is an updated patch

Greets,
  Gijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: depsolve-3.patch
Type: text/x-patch
Size: 4258 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070425/9da485e8/attachment.bin 


More information about the Yum-devel mailing list