[Yum-devel] yum devel series and help needed

seth vidal skvidal at linux.duke.edu
Fri Jun 23 16:37:00 UTC 2006


On Fri, 2006-06-23 at 12:03 -0400, Jeremy Katz wrote:
> 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.
> 

I was planning on putting this in this weekend.

I wanted to play with it more to get comfortable with how things are
handed around.

-sv





More information about the Yum-devel mailing list