Re: [ ACTION-107] Updating version list identifier algorithm

On Tue, 18 Sep 2007, Kai Hendry wrote:
> 
> monty:~% dpkg --compare-versions 1.10.0 gt 1.2.0 && echo true
> true

Right, but:

 $ dpkg --compare-versions 1.002 gt 1.1 && echo true
 true

...which is what Marcos was describing as a bug.

> In those accidental cases Debian uses an epoch. So a subsequent update 
> to a mistake like "110" is "1:1.1.1"

And what happens if you typo the epoch and now you have 11:1.1?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 18 September 2007 18:20:57 UTC