From 11c63a0b04fa10ce47d1bebc6254c90be7d11dfd Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 17 Aug 2022 00:45:51 +0100 Subject: python-any-r1.eclass: localise 'i' in python_setup Reported-by: Kerin Millar Signed-off-by: Sam James --- 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 -- cgit v1.2.3-65-gdbad