aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/cfg.lua2
-rw-r--r--src/luarocks/fs/unix.lua4
2 files changed, 1 insertions, 5 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index 89c53f24..484bfb79 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -146,7 +146,7 @@ if not sys_config_ok then
146 sys_config_file = sys_config_dir.."/config.lua" 146 sys_config_file = sys_config_dir.."/config.lua"
147 sys_config_ok, err = persist.load_into_table(sys_config_file, _M) 147 sys_config_ok, err = persist.load_into_table(sys_config_file, _M)
148end 148end
149if err and ok == nil then 149if err and sys_config_ok == nil then
150 io.stderr:write(err.."\n") 150 io.stderr:write(err.."\n")
151end 151end
152 152
diff --git a/src/luarocks/fs/unix.lua b/src/luarocks/fs/unix.lua
index d231222b..2dc5e492 100644
--- a/src/luarocks/fs/unix.lua
+++ b/src/luarocks/fs/unix.lua
@@ -1,9 +1,5 @@
1 1
2--- Unix implementation of filesystem and platform abstractions. 2--- Unix implementation of filesystem and platform abstractions.
3
4local assert, type, table, io, package, math, os, ipairs =
5 assert, type, table, io, package, math, os, ipairs
6
7module("luarocks.fs.unix", package.seeall) 3module("luarocks.fs.unix", package.seeall)
8 4
9local fs = require("luarocks.fs") 5local fs = require("luarocks.fs")