diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-01-28 14:56:47 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-01-28 14:56:47 +0000 |
commit | 08284a586ec1213f7f22e86fb6950b5f335915a9 (patch) | |
tree | 7620dce4026b57f21936ef7122292bd2da994cfa /prosodyctl | |
parent | 74ceb83ccae35196585ffab5abe678e544de9d1b (diff) | |
download | prosody-08284a586ec1213f7f22e86fb6950b5f335915a9.tar.gz prosody-08284a586ec1213f7f22e86fb6950b5f335915a9.zip |
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
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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" |