Re: dpkg's version comparison algorithm?
David Frey <david@eos.lugs.ch> writes:
> Why is 1.15 > 1.2 ?
Because 1 = 1 and 15 is > 2; dpkg breaks the version number into
chunks (in this case delimited by '.').
See verrevcmp() in lib/vercmp.c from the dpkg source for more details.
> Is it necessary to fill in trailing zeroes?
Yes. 20 > 15 -> 1.20 > 1.15
--
James
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: