diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-05-02 06:10:01 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-05-02 06:10:01 +0200 |
| commit | d133f3d0eb162f6d6e1385f9c96f9814315cd9c9 (patch) | |
| tree | ccc6504ec83e22d2d0f0327eeb7b749d70ceae1f /eclass/python-utils-r1.eclass | |
| parent | a2bd53b090680501ff2d1d11eecc196cfa68d446 (diff) | |
| download | gentoo-d133f3d0eb162f6d6e1385f9c96f9814315cd9c9.tar.gz gentoo-d133f3d0eb162f6d6e1385f9c96f9814315cd9c9.tar.bz2 gentoo-d133f3d0eb162f6d6e1385f9c96f9814315cd9c9.zip | |
python-utils-r1.eclass: Fix matching pattern list starting with 3.10
Closes: https://bugs.gentoo.org/955213
Fixes: 92cf8fae5081 (Disable Python 3.10 / PyPy 3.10 targets)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/python-utils-r1.eclass')
| -rw-r--r-- | eclass/python-utils-r1.eclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 860250cbe1eb..ef05a58e1b13 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -208,6 +208,8 @@ _python_impl_matches() { local impl=${1/./_} pattern shift + # note: do not add "return 1" below, the function is supposed + # to iterate until it matches something for pattern; do case ${pattern} in -2|python2*|pypy) @@ -229,7 +231,6 @@ _python_impl_matches() { return 0 ;; 3.10) - return 1 ;; 3.8|3.9|3.1[1-3]) [[ ${impl%t} == python${pattern/./_} || ${impl} == pypy${pattern/./_} ]] && |
