python-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:14 +01:00
parent 29d4036bd6
commit 2594bfb030

View File

@@ -729,7 +729,7 @@ python_setup() {
fi
# (reverse iteration -- newest impl first)
local found
local found i
_python_verify_patterns "${@}"
for (( i = ${#_PYTHON_SUPPORTED_IMPLS[@]} - 1; i >= 0; i-- )); do
local impl=${_PYTHON_SUPPORTED_IMPLS[i]}