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.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/luarocks/install.lua b/src/luarocks/install.lua
index b5128430..e28c24f0 100644
--- a/src/luarocks/install.lua
+++ b/src/luarocks/install.lua
@@ -166,10 +166,13 @@ function install.command(flags, name, version)
166 end 166 end
167 if not ok then return nil, err end 167 if not ok then return nil, err end
168 name, version = ok, err 168 name, version = ok, err
169
169 if (not flags["only-deps"]) and (not flags["keep"]) and not cfg.keep_other_versions then 170 if (not flags["only-deps"]) and (not flags["keep"]) and not cfg.keep_other_versions then
170 local ok, err = remove.remove_other_versions(name, version, flags["force"], flags["force-fast"]) 171 local ok, err = remove.remove_other_versions(name, version, flags["force"], flags["force-fast"])
171 if not ok then util.printerr(err) end 172 if not ok then util.printerr(err) end
172 end 173 end
174
175 manif.check_dependencies(nil, deps.get_deps_mode(flags))
173 return name, version 176 return name, version
174 else 177 else
175 local search = require("luarocks.search") 178 local search = require("luarocks.search")