[Yum-devel] [RFC] reduce the size of YumDepsolver._requiredByPkg
Jeremy Katz
katzj at redhat.com
Mon Apr 2 14:13:12 UTC 2007
On Mon, 2007-04-02 at 09:47 -0400, James Bowes wrote:
> Jeremy Katz wrote:
> >> Anyone think its broken?
> >
> > Yes :-)
> >
> > This makes it so that we don't ensure that the package in the
> > rpmdb/tsinfo actually matches the requirements of the package being
> > checked. The fact that the requirement names match isn't enough
>
> My understanding is that the r, f, v tuple passed into requireByPkg is
> the requirement that we are concerned about, so if we get a result from
> rpmdb.whatProvides(r, f, v) then that's good enough. But if I was
> certain about it, I wouldn't have mailed the list ;)
Think about the case where foo (being removed) provides foo = 1.1 and
there's another foo installed that provides foo = 1.2. While the
requirements aren't identical, for many cases, it's sufficient. But you
have to do the check to be certain
Jeremy
More information about the Yum-devel
mailing list