Gentoo Archives: gentoo-dev

From: Kent Fredric <kentfredric@×××××.com>
To: gentoo-dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] Request to add ~> atom prefix operator on Portage.
Date: Mon, 14 Sep 2015 09:15:50
Message-Id: CAATnKFBaDkT1a0kmQFsUZ75=_7MbapcUhHZZo=3XcEWGV4ymQQ@mail.gmail.com
In Reply to: Re: [gentoo-dev] Request to add ~> atom prefix operator on Portage. by Ulrich Mueller
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

Replies