[Yum-devel] fedorakmod.py

Jack Neely jjneely at ncsu.edu
Tue Jul 4 02:44:28 UTC 2006


On Mon, Jul 03, 2006 at 09:43:56PM -0400, Jeremy Katz wrote:
> On Mon, 2006-07-03 at 17:35 -0400, Jack Neely wrote:
> > I've updated the Fedora kernel module yum plugin for the latest API.  (I
> > had hoped to do a bit more than that today.)  
> 
> Okay, time to go change it again ;-P
> 
> > A goal for me has been to get this code to only use PackageObjects
> > instead of a evil combination of POs and RPM headers.  While the
> > PackageObject classes have improved so that the APIs are pretty similar
> > I never found code in Yum that would actually populate a PackageObject
> > with a RPM header from a currently installed package.  Is that hidden
> > somewhere I missed?
> 
> You can do so by instantiating a YumInstalledPackage object (see
> yum.packages)
> 
> Although some of this may change as Seth finishes up the rpmsack stuff
> 
> Jeremy
> 

That is what I'm doing, however the proc dict only contains the initial
place holders for obsoletes, requires, conflicts, and provides which are
horridly empty.

If the included code for recontructing that information is
usefull...feel free to use it.  :-)

Jack

-- 
Jack Neely <jjneely at ncsu.edu>
Campus Linux Services Project Lead
Information Technology Division, NC State University
GPG Fingerprint: 1917 5AC1 E828 9337 7AA4  EA6B 213B 765F 3B6A 5B89



More information about the Yum-devel mailing list