[Yum-devel] yum devel series and help needed

Jeremy Katz katzj at redhat.com
Fri Jun 23 16:03:04 UTC 2006


On Thu, 2006-05-25 at 14:38 +0100, Menno Smits wrote:
> Tambet Ingo wrote:
> >> It would be nice if the rpmdb was only opened when required, perhaps 
> >> every method call if that wasn't too expensive or problematic. Failing 
> >> that we might need a mechanism to explicitly close the rpmdb and have it 
> >> automatically opened on the next method call.
> > 
> > That's pretty much exactly what happens with this rpmsack. Creating a
> > rpmts doesn't open the db, creating a rpm match iterator does. Closing
> > the match iterator closes the rpm db (if there's no more references to
> > it). So in every method in rpmsack, a match iterator is created (if
> > needed, of course) and when the method returns, the match iterator falls
> > out of scope and should get closed.
> 
> Awesome. That's exactly what is required.
> 
> Let's get this integrated!

Any more work gone on here?  What do we need to do so that this can land
and we can hopefully have most of the big API changes in place.

Jeremy




More information about the Yum-devel mailing list