Fedora Tracker: Part Deux

Chip Turner cturner at redhat.com
Tue Mar 30 01:20:22 UTC 2004


Brad Smith <brads at redhat.com> writes:

> > When multiple versions of the same 
> > package are returned within a category, it should sort so that the 
> > "newest" package is displayed first.
> > 
> 
> The query currently does "ORDER BY package.name, package.version,
> package.release, package.arch", which should (and seems to) list
> packages in descending version order. Would it be simpler if the package
> list was not also sorted by arch, or are you referring to something
> else?

Won't quite work -- the alphabetical ordering of versions isn't
necessarily correct wrt rpm's versioning.  rpmvercmp is a bit more
complicated, unfortunately.

Chip

-- 
Chip Turner                   cturner at redhat.com
                              Red Hat, Inc.





More information about the fedora-devel-list mailing list