[Yum-devel] depreciated functions - what should be used

Troy Dawson dawson at fnal.gov
Mon Mar 5 19:13:01 UTC 2007


Jeremy Katz wrote:
> On Fri, 2007-02-23 at 16:24 -0600, Troy Dawson wrote:
>> Here is the function I want to use
>> getHdrList()
>> Which I am using to get a list of all the currently installed rpms with 
>> this call
>> conduit.getRpmDB().getHdrList()
>>
>> I even looked at the cvs logs, hoping maybe they gave a hint as to what 
>> I was supposed to use, but all it said when these were put in was
>> "emit deprecation warnings for annoying functions in rpmsack/rpmdbholder"
>>
>> What am I supposed to use instead of getHdrList()?
> 
> The rpmdb is now a package sack just like everything else; you can get a
> list of package objects for every installed package with
> conduit.getRpmDB().returnPackages().  Then, if you need the actual
> header (as opposed to the po), you can just look at po.hdr
> 
> Jeremy
> 

Just wanted to say thanks, that worked.
Thanks
Troy
-- 
__________________________________________________
Troy Dawson  dawson at fnal.gov  (630)840-6468
Fermilab  ComputingDivision/LCSI/CSI DSS Group
__________________________________________________



More information about the Yum-devel mailing list