Software /
code /
prosody
Diff
util/dependencies.lua @ 5830:ae48bf828f21
Run with own LuaSec.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Mon, 17 Jan 2011 16:50:21 +0100 |
parent | 3904:f93163081b3c |
child | 5842:1a71069dcacf |
line wrap: on
line diff
--- a/util/dependencies.lua Sat Jan 15 17:59:15 2011 +0100 +++ b/util/dependencies.lua Mon Jan 17 16:50:21 2011 +0100 @@ -11,9 +11,9 @@ function softreq(...) local ok, lib = pcall(require, ...); if ok then return lib; else return nil, lib; end end -- Required to be able to find packages installed with luarocks -if not softreq "luarocks.loader" then -- LuaRocks 2.x - softreq "luarocks.require"; -- LuaRocks <1.x -end +--if not softreq "luarocks.loader" then -- LuaRocks 2.x +-- softreq "luarocks.require"; -- LuaRocks <1.x +--end function missingdep(name, sources, msg) print("");