aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormpeterv <petjamelnik@yandex.ru>2014-03-20 21:50:30 +0400
committermpeterv <petjamelnik@yandex.ru>2014-03-20 21:50:30 +0400
commit066269a92b7d9cd7299188fea81a2ab9d16285d9 (patch)
tree6c3e7a6182ceec6d2efbd5f422f205f13431cc66 /src
parenta3ee3e91ae5147f15f521decfe4d9188afefc782 (diff)
downloadluarocks-066269a92b7d9cd7299188fea81a2ab9d16285d9.tar.gz
luarocks-066269a92b7d9cd7299188fea81a2ab9d16285d9.tar.bz2
luarocks-066269a92b7d9cd7299188fea81a2ab9d16285d9.zip
In luarocks.utils, require deps only inside functions
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/util.lua5
1 files changed, 1 insertions, 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 @@
4-- inside specific functions) to avoid interdependencies, 4-- inside specific functions) to avoid interdependencies,
5-- as this is used in the bootstrapping stage of luarocks.cfg. 5-- as this is used in the bootstrapping stage of luarocks.cfg.
6 6
7local global_env = _G
8
9module("luarocks.util", package.seeall) 7module("luarocks.util", package.seeall)
10 8
11local cfg = require("luarocks.cfg")
12
13local scheduled_functions = {} 9local scheduled_functions = {}
14local debug = require("debug") 10local debug = require("debug")
15 11
@@ -374,6 +370,7 @@ function this_program(default)
374end 370end
375 371
376function deps_mode_help(program) 372function deps_mode_help(program)
373 local cfg = require("luarocks.cfg")
377 return [[ 374 return [[
378--deps-mode=<mode> How to handle dependencies. Four modes are supported: 375--deps-mode=<mode> How to handle dependencies. Four modes are supported:
379 * all - use all trees from the rocks_trees list 376 * all - use all trees from the rocks_trees list