summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/python-r1.eclass12
1 files changed, 4 insertions, 8 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
index f337e25337b1..7ec77acd8665 100644
--- a/eclass/python-r1.eclass
+++ b/eclass/python-r1.eclass
@@ -324,16 +324,12 @@ python_gen_usedep() {
python_gen_useflags() {
debug-print-function ${FUNCNAME} "${@}"
- local impl pattern
- local matches=()
+ local impl matches=()
for impl in "${_PYTHON_SUPPORTED_IMPLS[@]}"; do
- for pattern; do
- if [[ ${impl} == ${pattern} ]]; then
- matches+=( "python_targets_${impl}" )
- break
- fi
- done
+ if _python_impl_matches "${impl}" "${@}"; then
+ matches+=( "python_targets_${impl}" )
+ fi
done
echo "${matches[@]}"