Gentoo Archives: gentoo-portage-dev

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

Replies