Re: New devel version released...

Jef Spaleta <[email protected]> 18 May 2002 13:59:55 -0400
Newsgroups gmane.linux.redhat.rpm.grab
Message-ID <1021744795.28134.19.camel@doubledare>
On Sat, 2002-05-18 at 03:29, Greg Kurtzer wrote:
> I like the idea of doing the whatrequires, but that method would be very ugly
> for doing a large number of packages. As it is, I think it is taking too long
> now... I like the idea however, and will give it more thought. Good thinking!

Would it be faster to create a whatrequires hash lookup from the already
installed packages on the system...say as part of the grab --update
process.  So you build the whatrequires hash once in awhile for every
package installed on the system.  That way you wouldn't have to call do
a rpm --whatrequires call you can do a lookup in a hash when grabbing
packages to find associated installed  packages that also need
upgrading.  Grab the header, build the provides has for that
header...and compare that hash to the whatrequires hash encompassing all
the previously installed packages...to find a list of other packages
that also need updates.  But I have no idea how much faster a hash
lookup would really be...so its just an idea for you to look at.


-jef