mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
python-single-r1.eclass: python_gen_impl_dep, use _python_impl_matches()
This commit is contained in:
@@ -447,14 +447,11 @@ python_gen_impl_dep() {
|
||||
|
||||
local patterns=( "${@-*}" )
|
||||
for impl in "${_PYTHON_SUPPORTED_IMPLS[@]}"; do
|
||||
for pattern in "${patterns[@]}"; do
|
||||
if [[ ${impl} == ${pattern} ]]; then
|
||||
local PYTHON_PKG_DEP
|
||||
python_export "${impl}" PYTHON_PKG_DEP
|
||||
matches+=( "${flag_prefix}_${impl}? ( ${PYTHON_PKG_DEP} )" )
|
||||
break
|
||||
fi
|
||||
done
|
||||
if _python_impl_matches "${impl}" "${patterns[@]}"; then
|
||||
local PYTHON_PKG_DEP
|
||||
python_export "${impl}" PYTHON_PKG_DEP
|
||||
matches+=( "${flag_prefix}_${impl}? ( ${PYTHON_PKG_DEP} )" )
|
||||
fi
|
||||
done
|
||||
|
||||
echo "${matches[@]}"
|
||||
|
||||
Reference in New Issue
Block a user