diff options
Diffstat (limited to 'src/luarocks/install.lua')
-rw-r--r-- | src/luarocks/install.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/luarocks/install.lua b/src/luarocks/install.lua index 10d57f37..c4139fd0 100644 --- a/src/luarocks/install.lua +++ b/src/luarocks/install.lua | |||
@@ -1,7 +1,6 @@ | |||
1 | --- Module implementing the LuaRocks "install" command. | 1 | --- Module implementing the LuaRocks "install" command. |
2 | -- Installs binary rocks. | 2 | -- Installs binary rocks. |
3 | local install = {} | 3 | local install = {} |
4 | package.loaded["luarocks.install"] = install | ||
5 | 4 | ||
6 | local path = require("luarocks.path") | 5 | local path = require("luarocks.path") |
7 | local repos = require("luarocks.repos") | 6 | local repos = require("luarocks.repos") |
@@ -9,9 +8,9 @@ local fetch = require("luarocks.fetch") | |||
9 | local util = require("luarocks.util") | 8 | local util = require("luarocks.util") |
10 | local fs = require("luarocks.fs") | 9 | local fs = require("luarocks.fs") |
11 | local deps = require("luarocks.deps") | 10 | local deps = require("luarocks.deps") |
12 | local manif = require("luarocks.manif") | 11 | local writer = require("luarocks.manif.writer") |
13 | local remove = require("luarocks.remove") | 12 | local remove = require("luarocks.remove") |
14 | local cfg = require("luarocks.cfg") | 13 | local cfg = require("luarocks.core.cfg") |
15 | 14 | ||
16 | install.help_summary = "Install a rock." | 15 | install.help_summary = "Install a rock." |
17 | 16 | ||
@@ -74,7 +73,7 @@ function install.install_binary_rock(rock_file, deps_mode) | |||
74 | 73 | ||
75 | -- For compatibility with .rock files built with LuaRocks 1 | 74 | -- For compatibility with .rock files built with LuaRocks 1 |
76 | if not fs.exists(path.rock_manifest_file(name, version)) then | 75 | if not fs.exists(path.rock_manifest_file(name, version)) then |
77 | ok, err = manif.make_rock_manifest(name, version) | 76 | ok, err = writer.make_rock_manifest(name, version) |
78 | if err then return nil, err end | 77 | if err then return nil, err end |
79 | end | 78 | end |
80 | 79 | ||
@@ -94,7 +93,7 @@ function install.install_binary_rock(rock_file, deps_mode) | |||
94 | ok, err = repos.run_hook(rockspec, "post_install") | 93 | ok, err = repos.run_hook(rockspec, "post_install") |
95 | if err then return nil, err end | 94 | if err then return nil, err end |
96 | 95 | ||
97 | ok, err = manif.update_manifest(name, version, nil, deps_mode) | 96 | ok, err = writer.update_manifest(name, version, nil, deps_mode) |
98 | if err then return nil, err end | 97 | if err then return nil, err end |
99 | 98 | ||
100 | util.announce_install(rockspec) | 99 | util.announce_install(rockspec) |