On 14 September 2015 at 23:38, Ulrich Mueller <u...@gentoo.org> wrote:
> Comparison in Algorithm 2 only takes place for the zeroth component
> (i.e., "1", for the example above).
>
> For all following numeric components Algorithm 3 is called. For the
> next component, the condition in line 1 is true, so it will remove
> trailing zeros (i.e., both "020" and "02" will become "02") and then
> it will use stringwise comparison.
>
> That is, versions 1.020.3 and 1.02.3 will be considered equal.

It seems that it may not have been implemented that way .

Or am I expecting the wrong things when I read that logic and expect that:

 emerge --ignore-default-opts -vaO =dev-lang/perl-5.022.0
 emerge --ignore-default-opts -vaO =dev-lang/perl-5.0220.0

Should both match dev-lang/perl-5.22.0 ?

-- 
Kent

KENTNL - https://metacpan.org/author/KENTNL

Reply via email to