public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/missing-attributes/
@ 2016-05-02 17:49 Brian Dolbec
  0 siblings, 0 replies; only message in thread
From: Brian Dolbec @ 2016-05-02 17:49 UTC (permalink / raw
  To: gentoo-commits

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>foodev@gentoo.org</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"


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-02 17:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-02 17:49 [gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/missing-attributes/ Brian Dolbec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox