diff options
| author | François Perrad <francois.perrad@gadz.org> | 2014-01-31 16:16:53 +0100 |
|---|---|---|
| committer | François Perrad <francois.perrad@gadz.org> | 2014-01-31 16:16:53 +0100 |
| commit | 73850dededda0e77d4a1df8af3f464e4a1c1d309 (patch) | |
| tree | cc66250a278f5830472694fb40a07ac614e2c1ce | |
| parent | 735f794629ca8da96ba09a2d7ed789169bec9cf3 (diff) | |
| download | luarocks-73850dededda0e77d4a1df8af3f464e4a1c1d309.tar.gz luarocks-73850dededda0e77d4a1df8af3f464e4a1c1d309.tar.bz2 luarocks-73850dededda0e77d4a1df8af3f464e4a1c1d309.zip | |
remove dead local variable wrap_bin_scripts
now, the job is done by a call to repos.should_wrap_bin_scripts()
| -rw-r--r-- | src/luarocks/install.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/luarocks/install.lua b/src/luarocks/install.lua index 7458ec8e..68b7c125 100644 --- a/src/luarocks/install.lua +++ b/src/luarocks/install.lua | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | |||
| 2 | --- Module implementing the LuaRocks "install" command. | 1 | --- Module implementing the LuaRocks "install" command. |
| 3 | -- Installs binary rocks. | 2 | -- Installs binary rocks. |
| 4 | module("luarocks.install", package.seeall) | 3 | module("luarocks.install", package.seeall) |
| @@ -81,11 +80,6 @@ function install_binary_rock(rock_file, deps_mode) | |||
| 81 | if err then return nil, err, errcode end | 80 | if err then return nil, err, errcode end |
| 82 | end | 81 | end |
| 83 | 82 | ||
| 84 | local wrap_bin_scripts = true | ||
| 85 | if rockspec.deploy and rockspec.deploy.wrap_bin_scripts == false then | ||
| 86 | wrap_bin_scripts = false | ||
| 87 | end | ||
| 88 | |||
| 89 | ok, err = repos.deploy_files(name, version, repos.should_wrap_bin_scripts(rockspec)) | 83 | ok, err = repos.deploy_files(name, version, repos.should_wrap_bin_scripts(rockspec)) |
| 90 | if err then return nil, err end | 84 | if err then return nil, err end |
| 91 | 85 | ||
