On 14 September 2015 at 21:04, Ulrich Mueller <u...@gentoo.org> wrote:
> Well, version comparison is described in [1] and it says that
> =cat/foo-1.020.3 will match cat/foo-1.02.3.

Surely, as per Algorithm 2, that is false, because "020" and "02" are
both integers, and therefor they'd default to integer comparison, and
"020" would be deemed ">" "02"

And that is most surely what happens in reality too, otherwise, surely,

   emerge --ignore-default-opts -vaO =dev-lang/perl-5.220.0

Would resolve to perl-5.22.0


Algorithm 3 should only fall into play if one or both of the
compontents are non-numeric.

Or is "leading 0" a "Non-numeric" condition?

Either way, I'm glad nothing really scary happens when I do:

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

-- 
Kent

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

Reply via email to