Mercurial > prosody-hg
diff util/dependencies.lua @ 2156:a6608ccab383
util.dependencies: Add LuaFileSystem as a hard dependency
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 23 Nov 2009 17:31:49 +0000 |
| parents | 841d61be198f |
| children | 7cb0aa497326 |
line wrap: on
line diff
--- a/util/dependencies.lua Fri Nov 20 15:07:39 2009 +0000 +++ b/util/dependencies.lua Mon Nov 23 17:31:49 2009 +0000 @@ -41,6 +41,15 @@ fatal = true; end +local lfs, err = softreq "lfs" +if not lfs then + missingdep("luafilesystem", { ["luarocks"] = "luarocks install luafilesystem"; + ["Ubuntu 8.04 (Hardy)"] = "sudo apt-get install liblua5.1-luafilesystem0"; + ["Source"] = "http://www.keplerproject.org/luafilesystem/"; + }); + fatal = true; +end + local ssl = softreq "ssl" if not ssl then
