python-any-r1.eclass: localise 'i' in python_setup

Reported-by: Kerin Millar <kfm@plushkava.net>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-08-17 00:45:51 +01:00
parent 2594bfb030
commit 11c63a0b04

View File

@@ -317,6 +317,7 @@ python_setup() {
# fallback to the best installed impl.
# (reverse iteration over _PYTHON_SUPPORTED_IMPLS)
local i
for (( i = ${#_PYTHON_SUPPORTED_IMPLS[@]} - 1; i >= 0; i-- )); do
local impl=${_PYTHON_SUPPORTED_IMPLS[i]}
# avoid checking EPYTHON twice