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 05:51:44
Message-Id: 22006.24676.585145.935143@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-dev] Request to add ~> atom prefix operator on Portage. by konsolebox
1 >>>>> On Mon, 14 Sep 2015, konsolebox wrote:
2
3 > Many times we need to match packages like this: something-1.0.2a.*
4 > But that expression is not allowed with ~ (only targets revisions)
5 > and neither with * (.*) is invalid.
6
7 > `So my suggestion is to add ~> as another operator. With it we can
8 > have an expression like '~>pkg-1.0.2a' and it would be equivalent to
9 > '>=pkg-1.0.2a' and '<pkg-1.0.2b'. Another expression like
10 > '~>pkg-1.0.2' would be equivalent to '>=pkg-1.0.2' and '<pkg-1.0.3'.
11
12 Sorry, but I don't get it. How would these be different from the
13 existing "=pkg-1.0.2a*" and "=pkg-1.0.2*"?
14
15 Ulrich

Replies

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