Gentoo Archives: gentoo-portage-dev

From: Ulrich Mueller <ulm@g.o>
To: Zac Medico <zmedico@g.o>
Cc: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] match_from_list: restrict =* to match only on version part boundaries (bug 560466)
Date: Mon, 21 Sep 2015 22:16:23
Message-Id: 22016.33200.502430.946848@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-portage-dev] [PATCH] match_from_list: restrict =* to match only on version part boundaries (bug 560466) by Zac Medico
1 >>>>> On Mon, 21 Sep 2015, Zac Medico wrote:
2
3 >> Does this patch consider suffix parts (including the integer if
4 >> present) as a single component?
5
6 > No, it considers the integer parts as a separate components, in
7 > order to maintain as much backward compatibility as possible.
8
9 > So, it deviates from your test cases only because =cat/foo-1_alpha*
10 > matches cat/foo-1_alpha1. Note that this case is not ambiguous like
11 > the others, so we may not want to break compatibility here.
12
13 In fact, PMS sections 3.2 and 3.3 don't define if a suffix is one or
14 two components. I believe that we could clarify the wording in either
15 way, both would be consistent.
16
17 Function get_version_components() from versionator.eclass treats
18 suffixes as single components, though. But maybe we can ignore this.
19
20 Ulrich