From b091201f79ebb0dcdd5b36a956cb6001bbe20f18 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 5 Feb 2010 13:52:01 +0000 Subject: util.dependencies: Don't query the config (it isn't really necessary) --- util/dependencies.lua | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'util') diff --git a/util/dependencies.lua b/util/dependencies.lua index 72a7cafe..baa0cee2 100644 --- a/util/dependencies.lua +++ b/util/dependencies.lua @@ -73,15 +73,11 @@ function check_dependencies() local ssl = softreq "ssl" if not ssl then - if config.get("*", "core", "run_without_ssl") then - log("warn", "Running without SSL support because run_without_ssl is defined in the config"); - else - missingdep("LuaSec", { - ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; - ["luarocks"] = "luarocks install luasec"; - ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; - }, "SSL/TLS support will not be available"); - end + missingdep("LuaSec", { + ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; + ["luarocks"] = "luarocks install luasec"; + ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; + }, "SSL/TLS support will not be available"); else local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then -- cgit v1.2.3