# HG changeset patch # User Matthew Wild # Date 1311790006 14400 # Node ID 040193dead77e94da7314586fe8d405729aadb86 # Parent 8154bc28e520a168efb4a8ba9ac61065252e3cf8 prosodyctl: Add info about the presence of LuaRocks to 'about' command diff -r 8154bc28e520 -r 040193dead77 prosodyctl --- a/prosodyctl Wed Jul 20 17:22:21 2011 -0400 +++ b/prosodyctl Wed Jul 27 14:06:46 2011 -0400 @@ -515,6 +515,11 @@ print(" "..path); end print(""); + local luarocks_status = (pcall(require, "luarocks.loader") and "Installed ("..(luarocks.cfg.program_version or "2.x+")..")") + or (pcall(require, "luarocks.require") and "Installed (1.x+)") + or "Not installed"; + print("LuaRocks: ", luarocks_status); + print(""); print("# Lua module versions"); local module_versions, longest_name = {}, 8; for name, module in pairs(package.loaded) do