summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-05-10 17:23:48 +0200
committerMichał Górny <mgorny@gentoo.org>2017-05-16 19:11:33 +0200
commitb768dbf36b2aeed97440910380ea9f96b5fa1127 (patch)
tree5605fc64d0fee40a31d9f733d8a294bdb9baabc9 /eclass/python-r1.eclass
parentpython-r1.eclass: python_gen_usedep, use _python_impl_matches() (diff)
downloadgentoo-b768dbf36b2aeed97440910380ea9f96b5fa1127.tar.gz
gentoo-b768dbf36b2aeed97440910380ea9f96b5fa1127.tar.bz2
gentoo-b768dbf36b2aeed97440910380ea9f96b5fa1127.zip
python-r1.eclass: python_gen_useflags, use _python_impl_matches()
Diffstat (limited to 'eclass/python-r1.eclass')
-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 f337e25337b..7ec77acd866 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[@]}"