commit: bf1303b234d7725abecb826ed55bd90758413001
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 27 01:34:17 2026 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Thu Mar 12 15:21:06 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf1303b2
rpm.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/rpm.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/rpm.eclass b/eclass/rpm.eclass
index e00332e55ca0..b9e1b87a29de 100644
--- a/eclass/rpm.eclass
+++ b/eclass/rpm.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: rpm.eclass
@@ -8,7 +8,7 @@
# @BLURB: convenience class for extracting RPMs
case ${EAPI} in
- 7|8) ;;
+ 7|8) inherit eapi9-pipestatus ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
@@ -38,7 +38,7 @@ rpm_unpack() {
a="${DISTDIR}/${a}"
fi
rpm2tar -O "${a}" | tar xf -
- assert "failure unpacking ${a}"
+ pipestatus || die "failure unpacking ${a}"
done
}