commit:     11c63a0b04fa10ce47d1bebc6254c90be7d11dfd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 16 23:45:51 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 24 04:54:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11c63a0b

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

Reported-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/python-any-r1.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
index fc66434cc6bf..f1f54358000c 100644
--- a/eclass/python-any-r1.eclass
+++ b/eclass/python-any-r1.eclass
@@ -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

Reply via email to