commit:     da26b7539b05d8d956dc9553afcdac2ebc1c47c5
Author:     Göktürk Yüksek <gokturk <AT> binghamton <DOT> edu>
AuthorDate: Mon May  2 01:08:47 2016 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Mon May  2 17:33:44 2016 +0000
URL:        https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=da26b753

xml-test/missing-attributes: missing mandatory attributes for various tags

Check for:
- type attribute in <maintainer/>
- name attribute in <slots/>
- name attribute in <flag/>
- type attribute for <remote-id/>

Signed-off-by: Göktürk Yüksek <gokturk <AT> binghamton.edu>

 xml-test/missing-attributes/metadata.xml           | 23 ++++++++++++++++++++++
 .../missing-attributes-0.1.ebuild                  | 13 ++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/xml-test/missing-attributes/metadata.xml 
b/xml-test/missing-attributes/metadata.xml
new file mode 100644
index 0000000..cf51afd
--- /dev/null
+++ b/xml-test/missing-attributes/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <!-- Missing attribute "type" -->
+  <maintainer>
+    <email>[email protected]</email>
+  </maintainer>
+  <slots>
+    <!-- Missing attribute "name" -->
+    <slot>Bar slot</slot>
+  </slots>
+  <use>
+    <!-- Missing attribute "name" -->
+    <flag>Baz flag</flag>
+  </use>
+  <upstream>
+    <!-- Missing attribute "type" -->
+    <remote-id>gentoo/gen-b0rk</remote-id>
+  </upstream>
+  <longdescription>
+    Tests for mandatory attributes for various tags
+  </longdescription>
+</pkgmetadata>

diff --git a/xml-test/missing-attributes/missing-attributes-0.1.ebuild 
b/xml-test/missing-attributes/missing-attributes-0.1.ebuild
new file mode 100644
index 0000000..5733009
--- /dev/null
+++ b/xml-test/missing-attributes/missing-attributes-0.1.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Missing various mandatory attributes in the metadata"
+HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68";
+SRC_URI=""
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="~amd64"

Reply via email to