diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2019-11-12 19:04:21 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-11-29 18:36:42 -0300 |
commit | dfc277954d2fe2586dc491cdc1216bae22399251 (patch) | |
tree | 4cfad110ef7ad58b75e9487c7d63895c025b696d | |
parent | b375f9d930f787c9224b5eaf8940486802098778 (diff) | |
download | luarocks-dfc277954d2fe2586dc491cdc1216bae22399251.tar.gz luarocks-dfc277954d2fe2586dc491cdc1216bae22399251.tar.bz2 luarocks-dfc277954d2fe2586dc491cdc1216bae22399251.zip |
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
-rw-r--r-- | src/luarocks/build.lua | 1 | ||||
-rw-r--r-- | src/luarocks/cmd/install.lua | 4 |
2 files changed, 1 insertions, 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) | |||
123 | end | 123 | end |
124 | 124 | ||
125 | if opts.deps_mode == "none" then | 125 | if opts.deps_mode == "none" then |
126 | util.warning("skipping dependency checks.") | ||
127 | return true | 126 | return true |
128 | end | 127 | end |
129 | if not opts.build_only_deps then | 128 | 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) | |||
97 | return nil, "Failed loading rockspec for installed package: "..err, errcode | 97 | return nil, "Failed loading rockspec for installed package: "..err, errcode |
98 | end | 98 | end |
99 | 99 | ||
100 | if opts.deps_mode == "none" then | 100 | if opts.deps_mode ~= "none" then |
101 | util.warning("skipping dependency checks.") | ||
102 | else | ||
103 | ok, err, errcode = deps.check_external_deps(rockspec, "install") | 101 | ok, err, errcode = deps.check_external_deps(rockspec, "install") |
104 | if err then return nil, err, errcode end | 102 | if err then return nil, err, errcode end |
105 | end | 103 | end |