diff options
author | François Perrad <francois.perrad@gadz.org> | 2014-03-01 23:04:17 +0100 |
---|---|---|
committer | François Perrad <francois.perrad@gadz.org> | 2014-03-01 23:04:17 +0100 |
commit | 7e2fd865f867a0846ca70a34a1b218c329a08ad3 (patch) | |
tree | 2f52dc524f02847fe1bb5e50d5fe5652c15f9ad2 | |
parent | ef20bb14aced31cb11abad8d283426ba9578f25c (diff) | |
download | luarocks-7e2fd865f867a0846ca70a34a1b218c329a08ad3.tar.gz luarocks-7e2fd865f867a0846ca70a34a1b218c329a08ad3.tar.bz2 luarocks-7e2fd865f867a0846ca70a34a1b218c329a08ad3.zip |
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
```
-rw-r--r-- | src/luarocks/manif.lua | 3 |
1 files changed, 1 insertions, 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 @@ | |||
1 | |||
2 | --- Module for handling manifest files and tables. | 1 | --- Module for handling manifest files and tables. |
3 | -- Manifest files describe the contents of a LuaRocks tree or server. | 2 | -- Manifest files describe the contents of a LuaRocks tree or server. |
4 | -- They are loaded into manifest tables, which are then used for | 3 | -- They are loaded into manifest tables, which are then used for |
@@ -253,7 +252,7 @@ local function update_dependencies(manifest, deps_mode) | |||
253 | for miss, err in pairs(missing) do | 252 | for miss, err in pairs(missing) do |
254 | if miss == current then | 253 | if miss == current then |
255 | util.printerr("Tree inconsistency detected: "..current.." has no rockspec. "..err) | 254 | util.printerr("Tree inconsistency detected: "..current.." has no rockspec. "..err) |
256 | else | 255 | elseif deps_mode ~= "none" then |
257 | util.printerr("Missing dependency for "..pkg.." "..version..": "..miss) | 256 | util.printerr("Missing dependency for "..pkg.." "..version..": "..miss) |
258 | end | 257 | end |
259 | end | 258 | end |