1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA512 |
3 |
|
4 |
Göktürk Yüksek: |
5 |
> Check for: - type attribute in <maintainer/> - name attribute in |
6 |
> <slots/> - name attribute in <flag/> - type attribute for |
7 |
> <remote-id/> |
8 |
> |
9 |
> Signed-off-by: Göktürk Yüksek <gokturk@××××××××××.edu> --- |
10 |
> xml-test/missing-attributes/metadata.xml | 23 |
11 |
> ++++++++++++++++++++++ .../missing-attributes-0.1.ebuild |
12 |
> | 13 ++++++++++++ 2 files changed, 36 insertions(+) create mode |
13 |
> 100644 xml-test/missing-attributes/metadata.xml create mode 100644 |
14 |
> xml-test/missing-attributes/missing-attributes-0.1.ebuild |
15 |
> |
16 |
> diff --git a/xml-test/missing-attributes/metadata.xml |
17 |
> b/xml-test/missing-attributes/metadata.xml new file mode 100644 |
18 |
> index 0000000..cf51afd --- /dev/null +++ |
19 |
> b/xml-test/missing-attributes/metadata.xml @@ -0,0 +1,23 @@ +<?xml |
20 |
> version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM |
21 |
> "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- |
22 |
> Missing attribute "type" --> + <maintainer> |
23 |
The DTD doesn't actually catch this (because type isn't mandatory |
24 |
inside <upstream/>) but I would think that the xml-schema does detect it |
25 |
. |
26 |
|
27 |
> + <email>foodev@g.o</email> + </maintainer> + <slots> + |
28 |
> <!-- Missing attribute "name" --> + <slot>Bar slot</slot> + |
29 |
> </slots> + <use> + <!-- Missing attribute "name" --> + |
30 |
> <flag>Baz flag</flag> + </use> + <upstream> + <!-- Missing |
31 |
> attribute "type" --> + <remote-id>gentoo/gen-b0rk</remote-id> + |
32 |
> </upstream> + <longdescription> + Tests for mandatory |
33 |
> attributes for various tags + </longdescription> +</pkgmetadata> |
34 |
> diff --git |
35 |
> a/xml-test/missing-attributes/missing-attributes-0.1.ebuild |
36 |
> b/xml-test/missing-attributes/missing-attributes-0.1.ebuild new |
37 |
> file mode 100644 index 0000000..5733009 --- /dev/null +++ |
38 |
> b/xml-test/missing-attributes/missing-attributes-0.1.ebuild @@ -0,0 |
39 |
> +1,13 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed |
40 |
> under the terms of the GNU General Public License v2 +# $Id$ + |
41 |
> +EAPI=6 + +DESCRIPTION="Missing various mandatory attributes in the |
42 |
> metadata" +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68" |
43 |
> +SRC_URI="" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64" |
44 |
> |
45 |
|
46 |
-----BEGIN PGP SIGNATURE----- |
47 |
|
48 |
iQEcBAEBCgAGBQJXJqn1AAoJEIT4AuXAiM4zLjAH/0XZiOZpejQmVO/0eV3yNKWH |
49 |
f6b3nXRkWOKl7G2NrF/s/si/qOiURIW8HJ0VPWgPYHvxnJlXNq5VANsNm8rKDPvS |
50 |
mRzZALQWApqYZ8QPCDV0oCVTmDttcNIfuIs+/m2cHtWWwFrT1+i6J+vexuS46Ult |
51 |
dms6gcn2GzCO1tk+5P3gLEEmCNdWb6Jntg2TTwTNuh/wUo5+WV7teIU+izl6qEU0 |
52 |
nlkYXIDQtE6RytGj5Ft5pmh84Em8awoUyxsmbiuLB4eYza5cx51s0B43W3ly0ZVM |
53 |
8XPcvWfjWQV5NiTGya4pZrI6W+3XttjrGaZW6ebj2CHTXQrrny9LPyRiKIBOnks= |
54 |
=R2BH |
55 |
-----END PGP SIGNATURE----- |