[Yum-devel] packagesack/package objects
Jack Neely
jjneely at pams.ncsu.edu
Tue Jan 31 04:12:57 UTC 2006
On Mon, Jan 30, 2006 at 10:55:10PM -0500, seth vidal wrote:
> 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
>
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at linux.duke.edu
> https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
Odd how two threads touching on very similar subjects happen at once.
Properties are good. But what must be achived, IMHO, is that all POs
must have the same API. Which is the direction you are going in. :-)
Jack
--
Jack Neely <jjneely at ncsu.edu>
Campus Linux Services Project Lead
PAMS Computer Operations at NC State University
GPG Fingerprint: 1917 5AC1 E828 9337 7AA4 EA6B 213B 765F 3B6A 5B89
More information about the Yum-devel
mailing list