On Fri, 2011-02-11 at 16:18 +0200, Panu Matilainen wrote: > Use the transaction handle we already have in populateTs() for fetching > headers from packages. Flipping bits for signature checking is > much cheaper and saner than instanciating and destroying entire > transaction sets once per every single package to be installed. > > Alternatively an optional ts argument could be added to > po.returnHeaderFromPackage() if that's preferred.
I think it'd be nicer to do the latter here. One of the biggest problems I've always had with the transaction set requirement for reading/accessing an individual rpm pkg is that it makes it impossible to separate out your objects entirely. Part of the reason for returnHeaderFromPackage() was to at least simulate that separation. Another idea - make rpm's interface not require the ts for everything. -sv _______________________________________________ Yum-devel mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum-devel
