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.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/install.lua b/src/luarocks/install.lua
index e1b44203..c181d612 100644
--- a/src/luarocks/install.lua
+++ b/src/luarocks/install.lua
@@ -134,7 +134,7 @@ function run(...)
134 if name:match("%.rockspec$") or name:match("%.src%.rock$") then 134 if name:match("%.rockspec$") or name:match("%.src%.rock$") then
135 util.printout("Using "..name.."... switching to 'build' mode") 135 util.printout("Using "..name.."... switching to 'build' mode")
136 local build = require("luarocks.build") 136 local build = require("luarocks.build")
137 return build.run(name, deps.get_deps_mode(flags), flags["local"] and "--local") 137 return build.run(name, util.forward_flags(flags, "local", "keep", "deps-mode"))
138 elseif name:match("%.rock$") then 138 elseif name:match("%.rock$") then
139 ok, err = install_binary_rock(name, deps.get_deps_mode(flags)) 139 ok, err = install_binary_rock(name, deps.get_deps_mode(flags))
140 if not ok then return nil, err end 140 if not ok then return nil, err end
@@ -152,7 +152,7 @@ function run(...)
152 elseif type(results) == "string" then 152 elseif type(results) == "string" then
153 local url = results 153 local url = results
154 util.printout("Installing "..url.."...") 154 util.printout("Installing "..url.."...")
155 return run(url) 155 return run(url, util.forward_flags(flags))
156 else 156 else
157 util.printout() 157 util.printout()
158 util.printerr("Could not determine which rock to install.") 158 util.printerr("Could not determine which rock to install.")