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 c9b085f5..3a33fcae 100644
--- a/src/luarocks/install.lua
+++ b/src/luarocks/install.lua
@@ -164,10 +164,13 @@ function install.command(flags, name, version)
164 end 164 end
165 if not ok then return nil, err end 165 if not ok then return nil, err end
166 name, version = ok, err 166 name, version = ok, err
167
167 if (not flags["only-deps"]) and (not flags["keep"]) and not cfg.keep_other_versions then 168 if (not flags["only-deps"]) and (not flags["keep"]) and not cfg.keep_other_versions then
168 local ok, err = remove.remove_other_versions(name, version, flags["force"], flags["force-fast"]) 169 local ok, err = remove.remove_other_versions(name, version, flags["force"], flags["force-fast"])
169 if not ok then util.printerr(err) end 170 if not ok then util.printerr(err) end
170 end 171 end
172
173 writer.check_dependencies(nil, deps.get_deps_mode(flags))
171 return name, version 174 return name, version
172 else 175 else
173 local search = require("luarocks.search") 176 local search = require("luarocks.search")