From 32b20798b5b71fd646bbaa05896ce94a61058af6 Mon Sep 17 00:00:00 2001 From: V1K1NGbg Date: Sat, 13 Jul 2024 00:03:39 +0300 Subject: small fix --- src/luarocks/core/manif.lua | 4 +++- src/luarocks/core/manif.tl | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/luarocks/core/manif.lua b/src/luarocks/core/manif.lua index 7d7d68fa..6f48bab3 100644 --- a/src/luarocks/core/manif.lua +++ b/src/luarocks/core/manif.lua @@ -1,4 +1,6 @@ -local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local table = _tl_compat and _tl_compat.table or table; local persist = require("luarocks.core.persist") +local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local table = _tl_compat and _tl_compat.table or table + +local persist = require("luarocks.core.persist") local cfg = require("luarocks.core.cfg") local dir = require("luarocks.core.dir") local util = require("luarocks.core.util") diff --git a/src/luarocks/core/manif.tl b/src/luarocks/core/manif.tl index cf698d82..dc8b53d2 100644 --- a/src/luarocks/core/manif.tl +++ b/src/luarocks/core/manif.tl @@ -1,3 +1,5 @@ + + local persist = require("luarocks.core.persist") local cfg = require("luarocks.core.cfg") local dir = require("luarocks.core.dir") -- cgit v1.2.3-55-g6feb