[Yum-devel] RFC: Package object comparison -- do we need a slight change?

seth vidal skvidal at linux.duke.edu
Thu Oct 12 18:32:25 UTC 2006


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.
> >
> > Tim
> >
> >
> To much cut & paste, there is a new patch.


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.


-sv





More information about the Yum-devel mailing list