>>>>> On Mon, 14 Sep 2015, Kent Fredric wrote:

> On 14 September 2015 at 18:52, Ulrich Mueller <u...@gentoo.org> wrote:
>> No, there isn't any dot implied. It uses simple prefix comparison,
>> as in shell globbing.

> Ugh. That's really really nasty. I'm going to have to go reprogram
> my brain with bleach. :(

> I say this because it doesn't strictly make sense in the knowledge
> that 1.3 and 1.30  both match =1.3*

We could fix this in a future EAPI such that version components would
not be split when matching. So =1.3* would not match 1.30 any more
because the 30 could only be matched as a whole.

OTOH, I am not aware of any problems caused by the current behaviour.
Although I agree that it isn't logical.

Another interesting example: Which of the following will match the
package "cat/foo-1.02.3", and why:

   =cat/foo-1.020.3
   =cat/foo-1.020.3*
   =cat/foo-01.02.3*

(Hint: PMS and Portage don't necessarily agree.)

Ulrich

Attachment: pgpGCOjxBsrMO.pgp
Description: PGP signature

Reply via email to