Software /
code /
prosody
Diff
prosodyctl @ 11552:d4b735272a61 0.11
prosodyctl about: Report libexpat version if known
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 11 May 2021 14:15:22 +0100 |
parent | 11529:10bea0941bab |
child | 11560:3bbb1af92514 |
child | 11586:35e880501efd |
line wrap: on
line diff
--- a/prosodyctl Tue May 11 14:14:15 2021 +0100 +++ b/prosodyctl Tue May 11 14:15:22 2021 +0100 @@ -413,7 +413,8 @@ 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 @@ 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]);