commit: 99492cb137c6ec5bb324103413a7848f371790e2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Thu Apr 16 12:56:42 2020 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Thu Apr 16 16:51:01 2020 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=99492cb1
ebuild-writing/misc-files/metadata: Add example code for m-n detection. Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> ebuild-writing/misc-files/metadata/text.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ebuild-writing/misc-files/metadata/text.xml b/ebuild-writing/misc-files/metadata/text.xml index abc5a3e..6cf7609 100644 --- a/ebuild-writing/misc-files/metadata/text.xml +++ b/ebuild-writing/misc-files/metadata/text.xml @@ -636,8 +636,16 @@ Maintainer-needed, or orphaned, packages have no maintainers responsible for them. Per <uri link="https://www.gentoo.org/glep/glep-0067.html#case-of-maintainer-needed-packages"> GLEP 67</uri>, these packages must not contain any <maintainer> -subtags under <pkgmetadata> in their <c>metadata.xml</c>. By -convention, a comment line containing the string <c>maintainer-needed</c> +subtags under <pkgmetadata> in their <c>metadata.xml</c>. A strict test +for this condition would be: +</p> + +<pre> +[[ $(xmllint --xpath "count(/pkgmetadata/maintainer)" metadata.xml) -eq 0 ]] +</pre> + +<p> +By convention, a comment line containing the string <c>maintainer-needed</c> is inserted. Other tags which are relevant to the package may be present in the metadata. Bugs for these packages must be assigned to <c>[email protected]</c>. The QA team periodically generates the
