diff options
Diffstat (limited to 'src/luarocks/deps.lua')
-rw-r--r-- | src/luarocks/deps.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua index d7d6e103..7ad0b23e 100644 --- a/src/luarocks/deps.lua +++ b/src/luarocks/deps.lua | |||
@@ -13,12 +13,8 @@ | |||
13 | -- insights on what these criteria are. | 13 | -- insights on what these criteria are. |
14 | module("luarocks.deps", package.seeall) | 14 | module("luarocks.deps", package.seeall) |
15 | 15 | ||
16 | local rep = require("luarocks.rep") | ||
17 | local search = require("luarocks.search") | ||
18 | local install = require("luarocks.install") | ||
19 | local cfg = require("luarocks.cfg") | 16 | local cfg = require("luarocks.cfg") |
20 | local manif_core = require("luarocks.manif_core") | 17 | local manif_core = require("luarocks.manif_core") |
21 | local fetch = require("luarocks.fetch") | ||
22 | local path = require("luarocks.path") | 18 | local path = require("luarocks.path") |
23 | local dir = require("luarocks.dir") | 19 | local dir = require("luarocks.dir") |
24 | 20 | ||
@@ -404,6 +400,9 @@ end | |||
404 | -- error code. | 400 | -- error code. |
405 | function fulfill_dependencies(rockspec) | 401 | function fulfill_dependencies(rockspec) |
406 | 402 | ||
403 | local search = require("luarocks.search") | ||
404 | local install = require("luarocks.install") | ||
405 | |||
407 | if rockspec.supported_platforms then | 406 | if rockspec.supported_platforms then |
408 | if not platforms_set then | 407 | if not platforms_set then |
409 | platforms_set = values_set(cfg.platforms) | 408 | platforms_set = values_set(cfg.platforms) |
@@ -588,6 +587,8 @@ function scan_deps(results, missing, manifest, name, version) | |||
588 | assert(type(name) == "string") | 587 | assert(type(name) == "string") |
589 | assert(type(version) == "string") | 588 | assert(type(version) == "string") |
590 | 589 | ||
590 | local fetch = require("luarocks.fetch") | ||
591 | |||
591 | local err | 592 | local err |
592 | if results[name] then | 593 | if results[name] then |
593 | return results, missing | 594 | return results, missing |