diff options
| author | mpeterv <petjamelnik@yandex.ru> | 2014-03-20 21:50:30 +0400 |
|---|---|---|
| committer | mpeterv <petjamelnik@yandex.ru> | 2014-03-20 21:50:30 +0400 |
| commit | 066269a92b7d9cd7299188fea81a2ab9d16285d9 (patch) | |
| tree | 6c3e7a6182ceec6d2efbd5f422f205f13431cc66 /src | |
| parent | a3ee3e91ae5147f15f521decfe4d9188afefc782 (diff) | |
| download | luarocks-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.lua | 5 |
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 | ||
| 7 | local global_env = _G | ||
| 8 | |||
| 9 | module("luarocks.util", package.seeall) | 7 | module("luarocks.util", package.seeall) |
| 10 | 8 | ||
| 11 | local cfg = require("luarocks.cfg") | ||
| 12 | |||
| 13 | local scheduled_functions = {} | 9 | local scheduled_functions = {} |
| 14 | local debug = require("debug") | 10 | local debug = require("debug") |
| 15 | 11 | ||
| @@ -374,6 +370,7 @@ function this_program(default) | |||
| 374 | end | 370 | end |
| 375 | 371 | ||
| 376 | function deps_mode_help(program) | 372 | function 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 |
