Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/missing-attributes/
Date: Mon, 02 May 2016 17:49:08
Message-Id: 1462210424.da26b7539b05d8d956dc9553afcdac2ebc1c47c5.dolsen@gentoo
1 commit: da26b7539b05d8d956dc9553afcdac2ebc1c47c5
2 Author: Göktürk Yüksek <gokturk <AT> binghamton <DOT> edu>
3 AuthorDate: Mon May 2 01:08:47 2016 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 17:33:44 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=da26b753
7
8 xml-test/missing-attributes: missing mandatory attributes for various tags
9
10 Check for:
11 - type attribute in <maintainer/>
12 - name attribute in <slots/>
13 - name attribute in <flag/>
14 - type attribute for <remote-id/>
15
16 Signed-off-by: Göktürk Yüksek <gokturk <AT> binghamton.edu>
17
18 xml-test/missing-attributes/metadata.xml | 23 ++++++++++++++++++++++
19 .../missing-attributes-0.1.ebuild | 13 ++++++++++++
20 2 files changed, 36 insertions(+)
21
22 diff --git a/xml-test/missing-attributes/metadata.xml b/xml-test/missing-attributes/metadata.xml
23 new file mode 100644
24 index 0000000..cf51afd
25 --- /dev/null
26 +++ b/xml-test/missing-attributes/metadata.xml
27 @@ -0,0 +1,23 @@
28 +<?xml version="1.0" encoding="UTF-8"?>
29 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
30 +<pkgmetadata>
31 + <!-- Missing attribute "type" -->
32 + <maintainer>
33 + <email>foodev@g.o</email>
34 + </maintainer>
35 + <slots>
36 + <!-- Missing attribute "name" -->
37 + <slot>Bar slot</slot>
38 + </slots>
39 + <use>
40 + <!-- Missing attribute "name" -->
41 + <flag>Baz flag</flag>
42 + </use>
43 + <upstream>
44 + <!-- Missing attribute "type" -->
45 + <remote-id>gentoo/gen-b0rk</remote-id>
46 + </upstream>
47 + <longdescription>
48 + Tests for mandatory attributes for various tags
49 + </longdescription>
50 +</pkgmetadata>
51
52 diff --git a/xml-test/missing-attributes/missing-attributes-0.1.ebuild b/xml-test/missing-attributes/missing-attributes-0.1.ebuild
53 new file mode 100644
54 index 0000000..5733009
55 --- /dev/null
56 +++ b/xml-test/missing-attributes/missing-attributes-0.1.ebuild
57 @@ -0,0 +1,13 @@
58 +# Copyright 1999-2016 Gentoo Foundation
59 +# Distributed under the terms of the GNU General Public License v2
60 +# $Id$
61 +
62 +EAPI=6
63 +
64 +DESCRIPTION="Missing various mandatory attributes in the metadata"
65 +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68"
66 +SRC_URI=""
67 +
68 +LICENSE="HPND"
69 +SLOT="0"
70 +KEYWORDS="~amd64"