Re: cup version drop "v"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Panu,

> > This
> > exception is a pita when using scripts to sort rpms by version.

> Sorting rpm's without using rpm's own version comparison algorithm is 
> guaranteed to break at some point, better use rpm-python bindings for such 
> tasks.

Actually my "sorting algorithm" is much easier: I'm sorting the
downloaded updates by date ;-) . I break the version of by splitting the
file name on the third dash from the end.

It's just that when picking the latest version of a package I check for
a digit after the package name as to avoid confusion between fe cup and
cup-devel. Versions starting with a letter break with this check.

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux