diff options
author | 2017-05-10 17:24:53 +0200 | |
---|---|---|
committer | 2017-05-16 19:11:35 +0200 | |
commit | 35f5bf6a53ca84274ebb656f686fe9995c442725 (patch) | |
tree | c76cbfb2d9b77301ca7b8cf81db7919e7a7eed3a /eclass/python-single-r1.eclass | |
parent | python-r1.eclass: python_setup, use _python_impl_matches() (diff) | |
download | gentoo-35f5bf6a53ca84274ebb656f686fe9995c442725.tar.gz gentoo-35f5bf6a53ca84274ebb656f686fe9995c442725.tar.bz2 gentoo-35f5bf6a53ca84274ebb656f686fe9995c442725.zip |
python-single-r1.eclass: python_gen_usedep, use _python_impl_matches()
Diffstat (limited to 'eclass/python-single-r1.eclass')
-rw-r--r-- | eclass/python-single-r1.eclass | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/eclass/python-single-r1.eclass b/eclass/python-single-r1.eclass index fc51c4ec2377..3145a17b1553 100644 --- a/eclass/python-single-r1.eclass +++ b/eclass/python-single-r1.eclass @@ -291,19 +291,15 @@ if [[ ! ${_PYTHON_SINGLE_R1} ]]; then python_gen_usedep() { 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}(-)?" - "python_single_target_${impl}(+)?" - ) - break - fi - done + if _python_impl_matches "${impl}" "${@}"; then + matches+=( + "python_targets_${impl}(-)?" + "python_single_target_${impl}(+)?" + ) + fi done [[ ${matches[@]} ]] || die "No supported implementations match python_gen_usedep patterns: ${@}" |