python-r1.eclass: localize variable to avoid leaking into the env
authorTim Harder <radhermit@gentoo.org>
Fri, 3 Mar 2017 20:49:16 +0000 (15:49 -0500)
committerMichał Górny <mgorny@gentoo.org>
Wed, 8 Mar 2017 07:35:41 +0000 (08:35 +0100)
eclass/python-r1.eclass

index 929ec8fa8f8931ecffefc61969d76dc29d5a6daf..4d27881cd5c4674b4122e8656cf87b1313d20c66 100644 (file)
@@ -476,6 +476,7 @@ _python_obtain_impls() {
 
        MULTIBUILD_VARIANTS=()
 
+       local impl
        for impl in "${_PYTHON_SUPPORTED_IMPLS[@]}"; do
                has "${impl}" "${PYTHON_COMPAT[@]}" && \
                use "python_targets_${impl}" && MULTIBUILD_VARIANTS+=( "${impl}" )