1 |
On 06/03/16 20:49, Michał Górny wrote: |
2 |
> On Sun, 6 Mar 2016 20:22:18 +0000 |
3 |
> "Justin <jlec>" <jlec@g.o> wrote: |
4 |
> |
5 |
>> On 06/03/16 19:28, Ulrich Mueller wrote: |
6 |
>>>>>>>> On Sun, 6 Mar 2016, Michał Górny wrote: |
7 |
>>> |
8 |
>>>> On Sun, 6 Mar 2016 19:26:15 +0100 |
9 |
>>>> Davide Pesavento <pesa@g.o> wrote: |
10 |
>>> |
11 |
>>>>> So I guess we could use the following form when SLOTs are needed: |
12 |
>>>>> <pkg>media-libs/gstreamer</pkg>:1.0 |
13 |
>>>>> ? |
14 |
>>> |
15 |
>>>> Prolly. |
16 |
>>> |
17 |
>>>> Just to be clear, I have no clue what the original use of <pkg/> |
18 |
>>>> was and what the final outcome of this will be. This thread was |
19 |
>>>> established mostly in order to determine that. I'd wait for ulm to |
20 |
>>>> turn up and have some suggestions ;-). |
21 |
>>> |
22 |
>>> :) |
23 |
>>> |
24 |
>>> No idea what the original purpose was, but <pkg> and <cat> are |
25 |
>>> specified in GLEP 56 [1]: |
26 |
>>> |
27 |
>>> - Each <flag> XML tag allows 0 or more nested <pkg> XML tags whose |
28 |
>>> character data is a valid CP or CPV as defined by the Gentoo |
29 |
>>> Development Manual - Ebuild File Format [2]. |
30 |
>> |
31 |
>> Michał, your current syntax breaks with multiple pkg |
32 |
>> |
33 |
>> (<pkg>sci-libs/metis</pkg> or <pkg>sci-libs/parmetis</pkg>) |
34 |
>> |
35 |
>> results in |
36 |
>> |
37 |
>> metadata.xml:21: element pkg: Schemas validity error : Element 'pkg': |
38 |
>> [facet 'pattern'] The value '' is not accepted by the pattern |
39 |
>> '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'. |
40 |
>> metadata.xml:21: element pkg: Schemas validity error : Element 'pkg': '' |
41 |
>> is not a valid value of the atomic type 'pkgType'. |
42 |
>> metadata.xml:24: element pkg: Schemas validity error : Element 'pkg': |
43 |
>> [facet 'pattern'] The value '' is not accepted by the pattern |
44 |
>> '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'. |
45 |
>> metadata.xml:24: element pkg: Schemas validity error : Element 'pkg': '' |
46 |
>> is not a valid value of the atomic type 'pkgType'. |
47 |
> |
48 |
> Are you sure about this? |
49 |
> |
50 |
> $ xmllint --noout --schema metadata.xsd /var/db/repos/gentoo/sci-libs/spqr/metadata.xml |
51 |
> /var/db/repos/gentoo/sci-libs/spqr/metadata.xml validates |
52 |
> |
53 |
> What validator do you use for this? |
54 |
> |
55 |
|
56 |
I was wrong, the output actually meant another line which contains a |
57 |
<pkg/>. Sorry for the noise. |