aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/install.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/install.lua')
-rw-r--r--src/luarocks/install.lua9
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.
3local install = {} 3local install = {}
4package.loaded["luarocks.install"] = install
5 4
6local path = require("luarocks.path") 5local path = require("luarocks.path")
7local repos = require("luarocks.repos") 6local repos = require("luarocks.repos")
@@ -9,9 +8,9 @@ local fetch = require("luarocks.fetch")
9local util = require("luarocks.util") 8local util = require("luarocks.util")
10local fs = require("luarocks.fs") 9local fs = require("luarocks.fs")
11local deps = require("luarocks.deps") 10local deps = require("luarocks.deps")
12local manif = require("luarocks.manif") 11local writer = require("luarocks.manif.writer")
13local remove = require("luarocks.remove") 12local remove = require("luarocks.remove")
14local cfg = require("luarocks.cfg") 13local cfg = require("luarocks.core.cfg")
15 14
16install.help_summary = "Install a rock." 15install.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)