Gentoo Archives: gentoo-portage-dev

From: Brian Dolbec <dolsen@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] man/ebuild.5: Update description of =* operator.
Date: Tue, 22 Sep 2015 14:28:52
Message-Id: 20150922072751.30cf379b.dolsen@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] man/ebuild.5: Update description of =* operator. by Zac Medico
1 On Tue, 22 Sep 2015 07:19:35 -0700
2 Zac Medico <zmedico@g.o> wrote:
3
4 > On 09/22/2015 12:15 AM, Ulrich Müller wrote:
5 > > After commit d4966a381ee4577818bd972946647338046715b1
6 > > "match_from_list: restrict =* to match only on version part
7 > > boundaries" the description of the =* operator in ebuild(5) was
8 > > no longer accurate.
9 > >
10 > > This reverts commit 2b1eceaf79ac667eecdf1ef9585592a235c8d93f.
11 > > ---
12 > > man/ebuild.5 | 9 +++------
13 > > 1 file changed, 3 insertions(+), 6 deletions(-)
14 > >
15 > > diff --git a/man/ebuild.5 b/man/ebuild.5
16 > > index 6a27cc5..e60eee1 100644
17 > > --- a/man/ebuild.5
18 > > +++ b/man/ebuild.5
19 > > @@ -96,12 +96,9 @@ Example:
20 > > .fi
21 > > .TP
22 > > .I *
23 > > -means match any version of the package so long
24 > > -as the specified string prefix is matched. So with a
25 > > -version of '2*', we can match '2.1', '2.2', '2.2.1',
26 > > -etc... and not match version '1.0', '3.0', '4.1', etc...
27 > > -Beware that, due to the string matching nature, '20'
28 > > -will also be matched by '2*'. The version part
29 > > +means match any version of the package so long as the specified
30 > > base +is matched. So with a version of '2*', we can match '2.1',
31 > > '2.2', '2.2.1', +etc... and not match version '1.0', '3.0', '4.1',
32 > > etc... The version part that comes before the '*' must be a valid
33 > > version in the absence of the '*'. For example, '2' is a valid
34 > > version and '2.' is not. Therefore, '2*' is allowed and '2.*' is
35 > > not.
36 > >
37 >
38 > Looks good.
39
40 yes, looks good other than the flak that has already started in
41 #gentoo-portage last night over the change...
42
43 It seems zero_chaos relied on the old behaviour, and at least one other
44 dev was upset over it.
45
46 almost sounded like it was going to be a pitch-forks, torches
47 mob was going to form ;)
48
49 But, I wonder if the change had a bug side effect...causing him the
50 grief
51 --
52 Brian Dolbec <dolsen>

Replies