Software /
code /
prosody
Diff
prosodyctl @ 2510:97b5ea975cb9
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
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 28 Jan 2010 14:56:47 +0000 |
parent | 2497:810fb77b6fe6 |
child | 2511:a81c710b1708 |
line wrap: on
line diff
--- a/prosodyctl Thu Jan 28 13:39:23 2010 +0000 +++ b/prosodyctl Thu Jan 28 14:56:47 2010 +0000 @@ -29,10 +29,13 @@ 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"