[Yum-devel] yum devel series and help needed
menno-yum at freshfoo.com
Thu May 25 13:38:35 UTC 2006
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!
More information about the Yum-devel