From dfc277954d2fe2586dc491cdc1216bae22399251 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 12 Nov 2019 19:04:21 -0300 Subject: do not warn about skipping dependency checks These are either caused by recursion of pinned dependencies or were explicitly requested by the user with --nodeps a.k.a. --deps-mode=none --- src/luarocks/build.lua | 1 - src/luarocks/cmd/install.lua | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua index fe8a815e..9aa70345 100644 --- a/src/luarocks/build.lua +++ b/src/luarocks/build.lua @@ -123,7 +123,6 @@ local function process_dependencies(rockspec, opts) end if opts.deps_mode == "none" then - util.warning("skipping dependency checks.") return true end if not opts.build_only_deps then diff --git a/src/luarocks/cmd/install.lua b/src/luarocks/cmd/install.lua index 0fcec4ad..cd1df294 100644 --- a/src/luarocks/cmd/install.lua +++ b/src/luarocks/cmd/install.lua @@ -97,9 +97,7 @@ function install.install_binary_rock(rock_file, opts) return nil, "Failed loading rockspec for installed package: "..err, errcode end - if opts.deps_mode == "none" then - util.warning("skipping dependency checks.") - else + if opts.deps_mode ~= "none" then ok, err, errcode = deps.check_external_deps(rockspec, "install") if err then return nil, err, errcode end end -- cgit v1.2.3-55-g6feb