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.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/luarocks/install.lua b/src/luarocks/install.lua
index e99b4ce0..0ae163f8 100644
--- a/src/luarocks/install.lua
+++ b/src/luarocks/install.lua
@@ -65,7 +65,12 @@ function install_binary_rock(rock_file)
65 ok, err, errcode = deps.fulfill_dependencies(rockspec) 65 ok, err, errcode = deps.fulfill_dependencies(rockspec)
66 if err then return nil, err, errcode end 66 if err then return nil, err, errcode end
67 67
68 ok, err = rep.deploy_files(name, version) 68 local wrap_bin_scripts = true
69 if rockspec.deploy and rockspec.deploy.wrap_bin_scripts == false then
70 wrap_bin_scripts = false
71 end
72
73 ok, err = rep.deploy_files(name, version, rep.should_wrap_bin_scripts(rockspec))
69 if err then return nil, err end 74 if err then return nil, err end
70 75
71 util.remove_scheduled_function(rollback) 76 util.remove_scheduled_function(rollback)
@@ -112,6 +117,7 @@ function run(...)
112 if not ok then return nil, err end 117 if not ok then return nil, err end
113 118
114 if name:match("%.rockspec$") or name:match("%.src%.rock$") then 119 if name:match("%.rockspec$") or name:match("%.src%.rock$") then
120 util.printout("Using "..name.."... switching to 'build' mode")
115 local build = require("luarocks.build") 121 local build = require("luarocks.build")
116 return build.run(name, flags["local"] and "--local") 122 return build.run(name, flags["local"] and "--local")
117 elseif name:match("%.rock$") then 123 elseif name:match("%.rock$") then