[Yum-devel] packagesack/package objects

seth vidal skvidal at linux.duke.edu
Tue Jan 31 03:55:10 UTC 2006


On Mon, 2006-01-30 at 22:30 -0500, Paul Nasrat wrote:
> On Mon, 2006-01-30 at 22:11 -0500, seth vidal wrote:
> > Hey,
> >  This is a layout for something menno and I discussed at lca.
> 
> Cool.
> 
> > Essentially we'd be getting rid of self.rpmdb and replacing it with a
> > rpmdbPackageSack - which is derived from a base packagesack object.
> 
> This sounds sane.
> 
> > YumBasePackage
> >   - YumAvailablePackage
> >     - YumAvailableSQLitePackage
> >     - YumAvailableXMLPackage
> >   - YumLocalPackage
> >   - YumInstalledPackage
> 
> Are YumInstalledPackage and YumLocalPackage not related (driven by
> header so lots of the parsing of prco into YumBasePackage format is the
> same).  This ties in to the patch I hacked up in the current
> YumInstalledPackage thread to try and unify behaviour.

ah, right - yes - they should be related: YumLocalPackage ->
YumInstalledPackage, I'd think.

> >    - everything in primary.xml
> >    - repo_object
> >    - relative url
> >    - filelists (as iterator object of some sort)
> >    - changelog (as its own object)
> 
> That all seems sane.  We probably want to sketch out the methods on
> these objects too.  
> 

I was thinking that we should use properties to access a lot of this
stuff to keep from having to store all this garbage in the po itself.

thoughts?
-sv





More information about the Yum-devel mailing list