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