aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/deps.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/deps.lua')
-rw-r--r--src/luarocks/deps.lua9
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.
14module("luarocks.deps", package.seeall) 14module("luarocks.deps", package.seeall)
15 15
16local rep = require("luarocks.rep")
17local search = require("luarocks.search")
18local install = require("luarocks.install")
19local cfg = require("luarocks.cfg") 16local cfg = require("luarocks.cfg")
20local manif_core = require("luarocks.manif_core") 17local manif_core = require("luarocks.manif_core")
21local fetch = require("luarocks.fetch")
22local path = require("luarocks.path") 18local path = require("luarocks.path")
23local dir = require("luarocks.dir") 19local dir = require("luarocks.dir")
24 20
@@ -404,6 +400,9 @@ end
404-- error code. 400-- error code.
405function fulfill_dependencies(rockspec) 401function 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