Re: dpkg doing wrong math (0.09 = 0.9) ?- [was: dak now supports ~ in version numbers]
On Fri, 11 Aug 2006 01:12:59 +0200, Michael Biebl <biebl@teco.edu> said:
[...]
> If it's not a bug in dpkg, could someone please elaborate on the
> reasoning of this behaviour. I'd be grateful for any comments and
> replies.
It's documented in Policy 5.6.12 [1]. Substrings composed of digits are
compared numerically, and so 09 == 9. (This is done to ensure that 10 >
9, for example.)
[1] http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version
So I guess your only real option is to use an epoch.
--
Hubert Chan - email & Jabber: hubert@uhoreg.ca - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA (Key available at wwwkeys.pgp.net)
Fingerprint: 96C5 012F 5F74 A5F7 1FF7 5291 AF29 C719 124B 61FA
Reply to: