[Yum-devel] RFC: Package object comparison -- do we need a slight change?
katzj at redhat.com
Fri Oct 13 01:28:31 UTC 2006
On Thu, 2006-10-12 at 14:32 -0400, seth vidal wrote:
> On Thu, 2006-10-12 at 09:45 +0200, Tim Lauridsen wrote:
> > Tim Lauridsen wrote:
> > > My proposal is to remove the rich comparisons for package objects and
> > > add an EVR property there return a compareable
> > > packageEVR object, there contain the rich comparisons for evr. (See
> > > the attached patch)
> > >
> > > if po1 > po2: will have to be changed to
> > >
> > > if po1.EVR > po2.EVR: # Everybody should be able to see what we are
> > > comparing here.
> yah - that's what we were talking about last night (or morning for you,
> or whatever)
> Right now I think that's the way we have to go and we need to sift
> through all the code (yum-utils, too) and look for all places a po is
> compared for ver and fix it up.
Committed this (with the needed fix) as well as fixed up the users
within yum itself which I could find with some quick grepping.
More information about the Yum-devel