commit: 08827923a93f7411b1428cd6d877ec4446f05a3e
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 27 02:08:25 2026 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Thu Mar 12 15:21:07 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08827923
texlive-common.eclass: use eapi9-pipestatus rather than assert
Preliminary work for EAPI 9, which bans the latter.
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
eclass/texlive-common.eclass | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
index 36b90a327fde..6e9c1fd84b4c 100644
--- a/eclass/texlive-common.eclass
+++ b/eclass/texlive-common.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: texlive-common.eclass
@@ -15,10 +15,8 @@
# Note that this eclass *must* not assume the presence of any standard tex too
case ${EAPI} in
- 7)
- inherit eapi8-dosym
- ;;
- 8) ;;
+ 7) inherit eapi8-dosym eapi9-pipestatus ;;
+ 8) inherit eapi9-pipestatus ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
@@ -293,7 +291,7 @@ texlive-common_update_tlpdb() {
find "${tlpobj}" -maxdepth 1 -type f -name "*.tlpobj" -print0 |
sort -z |
xargs -0 --no-run-if-empty sed -s '$G' >> "${new_tlpdb}"
- assert "generating tlpdb failed"
+ pipestatus || die "generating tlpdb failed"
fi
if [[ -f ${tlpdb} ]]; then