commit:     4d9b14a0bc5b66b1397efc0ada1a791f5b0adadd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 19 03:50:46 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 19 03:51:51 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d9b14a0

metadata/install-qa-check.d: don't use nonfatal on older EAPIs in 60python-pyc

Bug: https://bugs.gentoo.org/869182
Fixes: c310e44692ad91777c71394dda97cd1f33f72589
Signed-off-by: Sam James <sam <AT> gentoo.org>

 metadata/install-qa-check.d/60python-pyc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/metadata/install-qa-check.d/60python-pyc 
b/metadata/install-qa-check.d/60python-pyc
index fdd232422880..d1eae65e1b58 100644
--- a/metadata/install-qa-check.d/60python-pyc
+++ b/metadata/install-qa-check.d/60python-pyc
@@ -19,7 +19,9 @@ python_pyc_check() {
        # Avoid running the check if sufficiently new gpep517 is not installed
        # yet. It's valid to schedule (for merge order) >=gpep517-8 after
        # packages which have this check run if they don't use distutils-r1.
-       nonfatal has_version ">=dev-python/gpep517-8" || return
+       if [[ ${EAPI} == [0123] ]] || ! nonfatal has_version 
">=dev-python/gpep517-8" ; then
+               return
+       fi
 
        for prog in "${progs[@]}"; do
                local impl=${prog%/*}

Reply via email to