[PATCH] metadata.dtd: Add straight-to-stable element

Ulrich Müller <[email protected]> Mon, 15 Jun 2026 19:07:09 +0200
Newsgroups gmane.linux.gentoo.devel
Message-ID <[email protected]>
Bug: https://bugs.gentoo.org/974436
Signed-off-by: Ulrich Müller <[email protected]>
---
 metadata.dtd | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/metadata.dtd b/metadata.dtd
index 9aab14d..3ca15b9 100644
--- a/metadata.dtd
+++ b/metadata.dtd
@@ -2,7 +2,7 @@
 <!ELEMENT catmetadata ( (longdescription)* )>
 
 <!-- Metadata for a package -->
-<!ELEMENT pkgmetadata ( (maintainer|longdescription|slots|stabilize-allarches|use|upstream)* )>
+<!ELEMENT pkgmetadata ( (maintainer|longdescription|slots|stabilize-allarches|straight-to-stable|use|upstream)* )>
 
   <!-- One tag for each maintainer of a package, multiple allowed-->
   <!ELEMENT maintainer (email|name|description)+>
@@ -33,6 +33,9 @@
   <!-- whether it's possible to stabilize ALLARCHES -->
   <!ELEMENT stabilize-allarches EMPTY>
 
+  <!-- whether stable keywords should be retained on version bumps -->
+  <!ELEMENT straight-to-stable EMPTY>
+
   <!-- description of what this USE flag does for this package -->
   <!ELEMENT use (flag)* >
     <!ELEMENT flag (#PCDATA|pkg|cat)* >
@@ -87,6 +90,7 @@
   <!ATTLIST longdescription restrict CDATA #IMPLIED >
   <!ATTLIST flag restrict CDATA #IMPLIED >
   <!ATTLIST stabilize-allarches restrict CDATA #IMPLIED >
+  <!ATTLIST straight-to-stable restrict CDATA #IMPLIED >
 
 <!-- standard parts -->
 <!-- an email address -->
-- 
2.54.0