1 |
On 09/20/2015 10:39 PM, Ulrich Mueller wrote: |
2 |
>>>>>> On Sun, 20 Sep 2015, Zac Medico wrote: |
3 |
> |
4 |
>> Make the =* glob match only on boundaries between version parts, in |
5 |
>> order to eliminate ambiguity (so that 1* does not match version 10). |
6 |
>> Only break compatibility in cases where dependencies have been |
7 |
>> specified ambiguously. |
8 |
> |
9 |
> Does this patch consider suffix parts (including the integer if |
10 |
> present) as a single component? |
11 |
|
12 |
No, it considers the integer parts as a separate components, in order to |
13 |
maintain as much backward compatibility as possible. |
14 |
|
15 |
So, it deviates from your test cases only because =cat/foo-1_alpha* |
16 |
matches cat/foo-1_alpha1. Note that this case is not ambiguous like the |
17 |
others, so we may not want to break compatibility here. |
18 |
|
19 |
> |
20 |
> That is, the following should match: |
21 |
> |
22 |
> =cat/foo-1_alpha* cat/foo-1_alpha_beta |
23 |
> |
24 |
> But these should *not*: |
25 |
> |
26 |
> =cat/foo-1_p* cat/foo-1_pre |
27 |
> =cat/foo-1_alpha* cat/foo-1_alpha1 |
28 |
> |
29 |
> (The boundary of the version components is after _alpha and _alpha1, |
30 |
> respectively.) |
31 |
> |
32 |
> Ulrich |
33 |
> |
34 |
|
35 |
|
36 |
-- |
37 |
Thanks, |
38 |
Zac |