diff options
Diffstat (limited to 'src/luarocks/install.lua')
| -rw-r--r-- | src/luarocks/install.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/luarocks/install.lua b/src/luarocks/install.lua index 0a779b86..6b5ea85f 100644 --- a/src/luarocks/install.lua +++ b/src/luarocks/install.lua | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | module("luarocks.install", package.seeall) | 4 | module("luarocks.install", package.seeall) |
| 5 | 5 | ||
| 6 | local path = require("luarocks.path") | 6 | local path = require("luarocks.path") |
| 7 | local rep = require("luarocks.rep") | 7 | local repos = require("luarocks.repos") |
| 8 | local fetch = require("luarocks.fetch") | 8 | local fetch = require("luarocks.fetch") |
| 9 | local util = require("luarocks.util") | 9 | local util = require("luarocks.util") |
| 10 | local fs = require("luarocks.fs") | 10 | local fs = require("luarocks.fs") |
| @@ -37,8 +37,8 @@ function install_binary_rock(rock_file, no_deps) | |||
| 37 | if arch ~= "all" and arch ~= cfg.arch then | 37 | if arch ~= "all" and arch ~= cfg.arch then |
| 38 | return nil, "Incompatible architecture "..arch, "arch" | 38 | return nil, "Incompatible architecture "..arch, "arch" |
| 39 | end | 39 | end |
| 40 | if rep.is_installed(name, version) then | 40 | if repos.is_installed(name, version) then |
| 41 | rep.delete_version(name, version) | 41 | repos.delete_version(name, version) |
| 42 | end | 42 | end |
| 43 | 43 | ||
| 44 | local rollback = util.schedule_function(function() | 44 | local rollback = util.schedule_function(function() |
| @@ -77,15 +77,15 @@ function install_binary_rock(rock_file, no_deps) | |||
| 77 | wrap_bin_scripts = false | 77 | wrap_bin_scripts = false |
| 78 | end | 78 | end |
| 79 | 79 | ||
| 80 | ok, err = rep.deploy_files(name, version, rep.should_wrap_bin_scripts(rockspec)) | 80 | ok, err = repos.deploy_files(name, version, repos.should_wrap_bin_scripts(rockspec)) |
| 81 | if err then return nil, err end | 81 | if err then return nil, err end |
| 82 | 82 | ||
| 83 | util.remove_scheduled_function(rollback) | 83 | util.remove_scheduled_function(rollback) |
| 84 | rollback = util.schedule_function(function() | 84 | rollback = util.schedule_function(function() |
| 85 | rep.delete_version(name, version) | 85 | repos.delete_version(name, version) |
| 86 | end) | 86 | end) |
| 87 | 87 | ||
| 88 | ok, err = rep.run_hook(rockspec, "post_install") | 88 | ok, err = repos.run_hook(rockspec, "post_install") |
| 89 | if err then return nil, err end | 89 | if err then return nil, err end |
| 90 | 90 | ||
| 91 | ok, err = manif.update_manifest(name, version) | 91 | ok, err = manif.update_manifest(name, version) |
