projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22e4123
)
python-r1.eclass: python_gen_useflags, use _python_impl_matches()
author
Michał Górny
<mgorny@gentoo.org>
Wed, 10 May 2017 15:23:48 +0000
(17:23 +0200)
committer
Michał Górny
<mgorny@gentoo.org>
Tue, 16 May 2017 17:11:33 +0000
(19:11 +0200)
eclass/python-r1.eclass
patch
|
blob
|
history
diff --git
a/eclass/python-r1.eclass
b/eclass/python-r1.eclass
index f337e25337b10969d66bee0643f4700da953c096..7ec77acd8665832e502b9feaf876dc66791c9b86 100644
(file)
--- 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[@]}"