1 |
On 14 September 2015 at 21:04, Ulrich Mueller <ulm@g.o> wrote: |
2 |
> Well, version comparison is described in [1] and it says that |
3 |
> =cat/foo-1.020.3 will match cat/foo-1.02.3. |
4 |
|
5 |
Surely, as per Algorithm 2, that is false, because "020" and "02" are |
6 |
both integers, and therefor they'd default to integer comparison, and |
7 |
"020" would be deemed ">" "02" |
8 |
|
9 |
And that is most surely what happens in reality too, otherwise, surely, |
10 |
|
11 |
emerge --ignore-default-opts -vaO =dev-lang/perl-5.220.0 |
12 |
|
13 |
Would resolve to perl-5.22.0 |
14 |
|
15 |
|
16 |
Algorithm 3 should only fall into play if one or both of the |
17 |
compontents are non-numeric. |
18 |
|
19 |
Or is "leading 0" a "Non-numeric" condition? |
20 |
|
21 |
Either way, I'm glad nothing really scary happens when I do: |
22 |
|
23 |
emerge --ignore-default-opts -vaO =dev-lang/perl-5.0220.0 |
24 |
|
25 |
-- |
26 |
Kent |
27 |
|
28 |
KENTNL - https://metacpan.org/author/KENTNL |