Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Request to add ~> atom prefix operator on Portage.
Date: Mon, 14 Sep 2015 11:53:37
Message-Id: 22006.46388.320607.291015@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] Request to add ~> atom prefix operator on Portage. by Kent Fredric
1 >>>>> On Mon, 14 Sep 2015, Kent Fredric wrote:
2
3 > On 14 September 2015 at 23:38, Ulrich Mueller <ulm@g.o> wrote:
4 >> That is, versions 1.020.3 and 1.02.3 will be considered equal.
5
6 > It seems that it may not have been implemented that way .
7
8 > Or am I expecting the wrong things when I read that logic and expect that:
9
10 > emerge --ignore-default-opts -vaO =dev-lang/perl-5.022.0
11 > emerge --ignore-default-opts -vaO =dev-lang/perl-5.0220.0
12
13 > Should both match dev-lang/perl-5.22.0 ?
14
15 No, 5.022.0 and 5.0220.0 are equal to each other, but they are not
16 equal to 5.22.0. Algorithm 3 will remove any trailing zeros of the
17 component, so you'll end up with "022", "022". and "22", which are
18 compared using stringwise comparison.
19
20 Ulrich