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 11:45:43
Message-Id: CAATnKFDe4hAnEPen+y-vx5sOKqjp1e6ZN3=bRc9U+M_Ka3KBAg@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 23:38, Ulrich Mueller <ulm@g.o> wrote:
2 > Comparison in Algorithm 2 only takes place for the zeroth component
3 > (i.e., "1", for the example above).
4 >
5 > For all following numeric components Algorithm 3 is called. For the
6 > next component, the condition in line 1 is true, so it will remove
7 > trailing zeros (i.e., both "020" and "02" will become "02") and then
8 > it will use stringwise comparison.
9 >
10 > That is, versions 1.020.3 and 1.02.3 will be considered equal.
11
12 It seems that it may not have been implemented that way .
13
14 Or am I expecting the wrong things when I read that logic and expect that:
15
16 emerge --ignore-default-opts -vaO =dev-lang/perl-5.022.0
17 emerge --ignore-default-opts -vaO =dev-lang/perl-5.0220.0
18
19 Should both match dev-lang/perl-5.22.0 ?
20
21 --
22 Kent
23
24 KENTNL - https://metacpan.org/author/KENTNL

Replies