aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/persist.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/persist.lua b/src/luarocks/persist.lua
index 47afc81c..9d601a43 100644
--- a/src/luarocks/persist.lua
+++ b/src/luarocks/persist.lua
@@ -34,7 +34,7 @@ function persist.load_into_table(filename, tbl)
34 if _VERSION == "Lua 5.1" then -- Lua 5.1 34 if _VERSION == "Lua 5.1" then -- Lua 5.1
35 chunk, err = loadfile(filename) 35 chunk, err = loadfile(filename)
36 if chunk then 36 if chunk then
37 persist.setfenv(chunk, result) 37 setfenv(chunk, result)
38 ran, err = pcall(chunk) 38 ran, err = pcall(chunk)
39 end 39 end
40 else -- Lua 5.2 40 else -- Lua 5.2