From 08284a586ec1213f7f22e86fb6950b5f335915a9 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 28 Jan 2010 14:56:47 +0000 Subject: util.dependencies, prosody, prosodyctl: Give util.dependencies a check_dependencies() function so the caller can decide what to do when dependencies aren't met - update prosody/prosodyctl for this change --- prosodyctl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index 9f51cb68..00e67bd9 100755 --- a/prosodyctl +++ b/prosodyctl @@ -29,10 +29,13 @@ if CFG_DATADIR then end end +if not require "util.dependencies".check_dependencies() then + os.exit(1); +end + -- Required to be able to find packages installed with luarocks pcall(require, "luarocks.require") -require "util.dependencies" config = require "core.configmanager" -- cgit v1.2.3