Gentoo Archives: gentoo-dev

From: konsolebox <konsolebox@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Request to add ~> atom prefix operator on Portage.
Date: Mon, 14 Sep 2015 08:22:58
Message-Id: CAJnmqwb60=512-OtPvnbQGLvGy_7p7gQ7YSRHYax285uENYU5w@mail.gmail.com
In Reply to: Re: [gentoo-dev] Request to add ~> atom prefix operator on Portage. by Ulrich Mueller
1 On Mon, Sep 14, 2015 at 4:01 PM, Ulrich Mueller <ulm@g.o> wrote:
2 >>>>>> On Mon, 14 Sep 2015, Kent Fredric wrote:
3 >
4 >> On 14 September 2015 at 18:52, Ulrich Mueller <ulm@g.o> wrote:
5 > Another interesting example: Which of the following will match the
6 > package "cat/foo-1.02.3", and why:
7 >
8 > =cat/foo-1.020.3
9 > =cat/foo-1.020.3*
10 > =cat/foo-01.02.3*
11
12 If we use an arithmetic operator like ~> then that could be decided
13 easily. First we use a rule that all version numbers are decimal (oct
14 is unlikely), so we simply remove the leading zeros then apply the
15 rule accordingly, which is >=cat/foo-1.20.3 && <cat/foo-1.20.4.
16
17 That would be a good solution since we can also have
18 '=cat/foo-01.02.3*' to stay as a pure string matcher.

Replies

Subject Author
Re: [gentoo-dev] Request to add ~> atom prefix operator on Portage. Kent Fredric <kentfredric@×××××.com>