Re: Need perl code to compare Debian packages version numbers...
> Hello,
>
> as the subject says, I'm looking for the perl code to compare Debian
> packages version numbers.
> I think I already saw this somewhere, but can't remember in which package
> it was. Anybody can give me a pointer?
You can extract it from the code in /usr/share/devscripts/versort in
the devscripts package. It's certainly non-trivial, and unless you
have a good reason to do it in Perl directly, dpkg --compare-versions
would be much easier.
Julian
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
Debian GNU/Linux Developer, see http://www.debian.org/~jdg
Reply to: