aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2021-05-11 14:15:22 +0100
committerMatthew Wild <mwild1@gmail.com>2021-05-11 14:15:22 +0100
commit3fd3d2cd99284e5641084c5acb485028de535a05 (patch)
treea448d86164cb6cdb33b310c07e71ee10b96b84e7
parentf0c2ed120130778f3a6ef59e41d1deb1667e9f3f (diff)
downloadprosody-3fd3d2cd99284e5641084c5acb485028de535a05.tar.gz
prosody-3fd3d2cd99284e5641084c5acb485028de535a05.zip
prosodyctl about: Report libexpat version if known
-rwxr-xr-xprosodyctl6
1 files changed, 5 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index 28e9da43..8c0ce66c 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -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]);