mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
python-utils-r1.eclass: Fix early return in _python_impl_matches
Fix _python_impl_matches() not to return early on unsuccessful -2/-3
match. This caused constructs such as '$(python_gen_cond_dep ... -2
python3_{5,6,7})' to ignore arguments following '-2'.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -183,10 +183,9 @@ _python_impl_matches() {
|
||||
|
||||
for pattern; do
|
||||
if [[ ${pattern} == -2 ]]; then
|
||||
! python_is_python3 "${impl}"
|
||||
return
|
||||
python_is_python3 "${impl}" || return 0
|
||||
elif [[ ${pattern} == -3 ]]; then
|
||||
python_is_python3 "${impl}"
|
||||
python_is_python3 "${impl}" && return 0
|
||||
return
|
||||
# unify value style to allow lax matching
|
||||
elif [[ ${impl/./_} == ${pattern/./_} ]]; then
|
||||
|
||||
Reference in New Issue
Block a user