summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-01-09 11:47:28 +0100
committerMichał Górny <mgorny@gentoo.org>2020-01-09 12:01:44 +0100
commit3aa073296d42b78513d92dcba1c6f0bd6d5f51b8 (patch)
tree0e776858fa20a77b87983ba5b1c135343da912c5
parentCleanup all remaining GuideXML DTDs. (diff)
downloaddtd-3aa073296d42b78513d92dcba1c6f0bd6d5f51b8.tar.gz
dtd-3aa073296d42b78513d92dcba1c6f0bd6d5f51b8.tar.bz2
dtd-3aa073296d42b78513d92dcba1c6f0bd6d5f51b8.zip
metadata.dtd: Fix maintainer element.
According to GLEP 68, the "maintainer" element is ambiguous: At top level, it contains in any order: - exactly one "email" element, - at most one "name" element, - zero or more "description" elements. As subelement of "upstream", it contains in any order: - exactly one "name" element, - at most one "email" element. Since DTD syntax lacks expressiveness, the best we can do (while keeping things reasonably short) is "(email|name|description)+". Signed-off-by: Ulrich Müller <ulm@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--metadata.dtd2
1 files changed, 1 insertions, 1 deletions
diff --git a/metadata.dtd b/metadata.dtd
index cb38299..d02c5ac 100644
--- a/metadata.dtd
+++ b/metadata.dtd
@@ -7,7 +7,7 @@
<!ATTLIST pkgmetadata pkgname CDATA "">
<!-- One tag for each maintainer of a package, multiple allowed-->
- <!ELEMENT maintainer ( email, (description| name)* )>
+ <!ELEMENT maintainer (email|name|description)+>
<!-- type attribute determines whether the maintainer is a person or a project.
Unknown is added to handle <maintainer/>s in <upstream/>s. Using it (or no
explicit type) for Gentoo maintainers is prohibited. -->