diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-05-10 17:26:02 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-05-16 19:11:37 +0200 |
commit | f6bea5ce22082c40e68b5c240486d0dbc9024298 (patch) | |
tree | 88b1878d4099b5418b9378ffab36486a238f537e /eclass | |
parent | python-single-r1.eclass: python_gen_cond_dep, use _python_impl_matches() (diff) | |
download | gentoo-f6bea5ce22082c40e68b5c240486d0dbc9024298.tar.gz gentoo-f6bea5ce22082c40e68b5c240486d0dbc9024298.tar.bz2 gentoo-f6bea5ce22082c40e68b5c240486d0dbc9024298.zip |
python-single-r1.eclass: python_gen_impl_dep, use _python_impl_matches()
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/python-single-r1.eclass | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/eclass/python-single-r1.eclass b/eclass/python-single-r1.eclass index eeb827513380..42c696c1f9a2 100644 --- a/eclass/python-single-r1.eclass +++ b/eclass/python-single-r1.eclass @@ -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[@]}" |