mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
prosodyctl about: Report libexpat version if known
This commit is contained in:
parent
f0c2ed1201
commit
3fd3d2cd99
1 changed files with 5 additions and 1 deletions
|
@ -413,7 +413,8 @@ function commands.about(arg)
|
|||
print("");
|
||||
print("# Lua module versions");
|
||||
local module_versions, longest_name = {}, 8;
|
||||
local luaevent =dependencies.softreq"luaevent";
|
||||
local luaevent = dependencies.softreq"luaevent";
|
||||
local lxp = dependencies.softreq"lxp";
|
||||
dependencies.softreq"ssl";
|
||||
dependencies.softreq"DBI";
|
||||
for name, module in pairs(package.loaded) do
|
||||
|
@ -428,6 +429,9 @@ function commands.about(arg)
|
|||
if luaevent then
|
||||
module_versions["libevent"] = luaevent.core.libevent_version();
|
||||
end
|
||||
if lxp then
|
||||
module_versions["libexpat"] = lxp._EXPAT_VERSION;
|
||||
end
|
||||
local sorted_keys = array.collect(keys(module_versions)):sort();
|
||||
for _, name in ipairs(sorted_keys) do
|
||||
print(name..":"..string.rep(" ", longest_name-#name), module_versions[name]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue