commit:     10b606496324816330bf93036613b55353bcafe0
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 26 19:37:47 2026 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Thu Mar 12 15:21:01 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10b60649

python-utils-r1.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/python-utils-r1.eclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 240365ab738c..807813f3f3bd 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -27,7 +27,7 @@ if [[ -z ${_PYTHON_UTILS_R1_ECLASS} ]]; then
 _PYTHON_UTILS_R1_ECLASS=1
 
 case ${EAPI} in
-       7|8) ;;
+       7|8) inherit eapi9-pipestatus ;;
        *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
@@ -1231,12 +1231,12 @@ _python_check_occluded_packages() {
                                comm -1 -3 <(
                                        find "${fn}" -type f -not -path 
'*/__pycache__/*' |
                                                sort
-                                       assert
+                                       pipestatus || die
                                ) <(
                                        cd "${sitedir}" &&
                                                find "${fn}" -type f -not -path 
'*/__pycache__/*' |
                                                sort
-                                       assert
+                                       pipestatus || die
                                )
                        )
 

Reply via email to