Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>
Subject: [gentoo-dev] [PATCH] metadata.dtd: Drop obsolete pkgname attribute from {cat,pkg}metadata
Date: Fri, 07 Oct 2022 20:16:44
Message-Id: 20221007201617.26823-1-ulm@gentoo.org
1 This is neither present in the XML schema nor mentioned in GLEP 68.
2
3 The pkgname attribute was added in 2003 together with the packages
4 element, "allowing for a combined view of all metadata files":
5 https://gitweb.gentoo.org/archive/proj/gentoo.git/commit/?id=b1eae649bb6b7ae623b66cb08d7496f042329f10
6
7 In commit 3bbce9c90e430387537c6fdc3d97c3647ed9c465, the package
8 element has already been removed.
9
10 Signed-off-by: Ulrich Müller <ulm@g.o>
11 ---
12 metadata.dtd | 2 --
13 1 file changed, 2 deletions(-)
14
15 diff --git a/metadata.dtd b/metadata.dtd
16 index e1207de..c36242a 100644
17 --- a/metadata.dtd
18 +++ b/metadata.dtd
19 @@ -1,10 +1,8 @@
20 <!-- Metadata for a category -->
21 <!ELEMENT catmetadata ( (longdescription)* )>
22 -<!ATTLIST catmetadata pkgname CDATA "">
23
24 <!-- Metadata for a package -->
25 <!ELEMENT pkgmetadata ( (maintainer|longdescription|slots|stabilize-allarches|use|upstream)* )>
26 -<!ATTLIST pkgmetadata pkgname CDATA "">
27
28 <!-- One tag for each maintainer of a package, multiple allowed-->
29 <!ELEMENT maintainer (email|name|description)+>
30 --
31 2.38.0