Preliminary work for EAPI 9, which bans the latter.
Signed-off-by: Eli Schwartz <[email protected]>
---
eclass/greadme.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/greadme.eclass b/eclass/greadme.eclass
index 49aba1d89389..6c1e1fd57458 100644
--- a/eclass/greadme.eclass
+++ b/eclass/greadme.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: greadme.eclass
@@ -44,7 +44,7 @@ if [[ -z ${_GREADME_ECLASS} ]]; then
_GREADME_ECLASS=1
case ${EAPI} in
- 8) ;;
+ 8) inherit eapi9-pipestatus ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
@@ -120,7 +120,7 @@ _greadme_install_doc() {
# https://bugs.gentoo.org/460050#c7
fold -s -w 70 "${_GREADME_TMP_FILE}" |
sed 's/[[:space:]]*$//' > "${greadme}"
- assert "failed to autoformat README.gentoo"
+ pipestatus || die "failed to autoformat README.gentoo"
fi
# Subshell to avoid pollution of calling environment.
--
2.52.0