From 917c10d919c2c026a20b30772a09fff815974409 Mon Sep 17 00:00:00 2001 From: Oleg Jukovec Date: Sun, 10 Nov 2024 22:11:55 +0300 Subject: [PATCH] cfg: do not reconfigure if successfully initialized The success include that cfg.variables.LUA should be found. --- src/luarocks/core/cfg.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index e58c84d9d..74166363a 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua @@ -941,7 +941,7 @@ function cfg.init(detected, warning) return table.concat(platform_keys, ", ") end - cfg.initialized = true + cfg.initialized = exit_ok and cfg.variables.LUA ~= nil return exit_ok, exit_err, exit_what end