From 066269a92b7d9cd7299188fea81a2ab9d16285d9 Mon Sep 17 00:00:00 2001 From: mpeterv Date: Thu, 20 Mar 2014 21:50:30 +0400 Subject: In luarocks.utils, require deps only inside functions --- src/luarocks/util.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index 4b138516..4e70aa91 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua @@ -4,12 +4,8 @@ -- inside specific functions) to avoid interdependencies, -- as this is used in the bootstrapping stage of luarocks.cfg. -local global_env = _G - module("luarocks.util", package.seeall) -local cfg = require("luarocks.cfg") - local scheduled_functions = {} local debug = require("debug") @@ -374,6 +370,7 @@ function this_program(default) end function deps_mode_help(program) + local cfg = require("luarocks.cfg") return [[ --deps-mode= How to handle dependencies. Four modes are supported: * all - use all trees from the rocks_trees list -- cgit v1.2.3-55-g6feb