commit:     8b5cdc0c1e85aab171e843c11cfb3b5ce1bb93d9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 21 15:31:46 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 21 17:41:13 2024 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=8b5cdc0c

testdata: Use a more realistic python-any-r1 implementation

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 testdata/repos/python/eclass/python-any-r1.eclass | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/testdata/repos/python/eclass/python-any-r1.eclass 
b/testdata/repos/python/eclass/python-any-r1.eclass
index 1066a5ad..8cfc2f5c 100644
--- a/testdata/repos/python/eclass/python-any-r1.eclass
+++ b/testdata/repos/python/eclass/python-any-r1.eclass
@@ -12,16 +12,14 @@
 
 _python_set_impls() {
        local i slot
-       local -a use
+       PYTHON_DEPS="|| ("
        for i in "${PYTHON_COMPAT[@]}"; do
                slot=${i#python}
                slot=${slot/_/.}
-               use+=( "python_targets_${i}" )
-               PYTHON_DEPS+=" python_targets_${i}? ( dev-lang/python:${slot} )"
+               PYTHON_DEPS+=" dev-lang/python:${slot}"
        done
-       IUSE+=" ${use[@]}"
-       PYTHON_REQUIRED_USE="|| ( ${use[@]} )"
-       PYTHON_USEDEP=$(IFS=","; echo "${use[*]}")
+       PYTHON_DEPS+=" )"
+       PYTHON_REQUIRED_USE='I-DO-NOT-EXIST-IN-PYTHON-ANY-R1'
 }
 _python_set_impls
 

Reply via email to