diff options
-rw-r--r-- | src/luarocks/cfg.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 881db683..710ca8f4 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
@@ -10,7 +10,11 @@ local rawset, next, table, pairs, print, require, io, os, setmetatable, pcall, i | |||
10 | module("luarocks.cfg") | 10 | module("luarocks.cfg") |
11 | 11 | ||
12 | -- Load site-local global configurations | 12 | -- Load site-local global configurations |
13 | local config = require("luarocks.config") | 13 | local ok, config = pcall(require, "luarocks.config") |
14 | if not ok then | ||
15 | print("Site-local luarocks/config.lua file not found. Incomplete installation?") | ||
16 | config = {} | ||
17 | end | ||
14 | 18 | ||
15 | program_version = "2.0.1" | 19 | program_version = "2.0.1" |
16 | user_agent = "LuaRocks/"..program_version | 20 | user_agent = "LuaRocks/"..program_version |