From 7e2fd865f867a0846ca70a34a1b218c329a08ad3 Mon Sep 17 00:00:00 2001 From: François Perrad Date: Sat, 1 Mar 2014 23:04:17 +0100 Subject: filter message when deps_mode="none" On Buildroot, we call `luarocks make --deps-mode=none --keep foo.rockspec` So, the message about missing dependency is confusing. ``` Warning: skipping dependency checks. ... Missing dependency for cgilua 5.1.4-1: luafilesystem >= 1.5.0 ``` --- src/luarocks/manif.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/luarocks/manif.lua b/src/luarocks/manif.lua index b9a65b09..951d6e56 100644 --- a/src/luarocks/manif.lua +++ b/src/luarocks/manif.lua @@ -1,4 +1,3 @@ - --- Module for handling manifest files and tables. -- Manifest files describe the contents of a LuaRocks tree or server. -- They are loaded into manifest tables, which are then used for @@ -253,7 +252,7 @@ local function update_dependencies(manifest, deps_mode) for miss, err in pairs(missing) do if miss == current then util.printerr("Tree inconsistency detected: "..current.." has no rockspec. "..err) - else + elseif deps_mode ~= "none" then util.printerr("Missing dependency for "..pkg.." "..version..": "..miss) end end -- cgit v1.2.3-55-g6feb