From b768dbf36b2aeed97440910380ea9f96b5fa1127 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 10 May 2017 17:23:48 +0200 Subject: [PATCH] python-r1.eclass: python_gen_useflags, use _python_impl_matches() --- eclass/python-r1.eclass | 12 ++++-------- 1 file 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[@]}" -- 2.26.2