On Thu, 2012-02-02 at 10:31 -0500, Zdenek Pavlas wrote:
> > +                        if (self.allowedMultipleInstalls(pkg) or
> > +                            key not in ndinst):
> > ..
> > +                                ndinst[key] = sorted(ipkgs)[-1]
> 
> Can't we just use max(ipkgs) there?  Not sure if there were
> any issues with min/max, and I was unable to google it atm.

 The only problem, which is non-obvious, is that max/min only appeared
after python-2.4 ... so you can't use them in RHEL-5, although we have
hacks in depsolve.

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to