aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-07-10 03:23:10 +0200
committerKim Alvefur <zash@zash.se>2020-07-10 03:23:10 +0200
commit6e59b775022a6c385ce878898bf08a9def1f363c (patch)
treee5d448c6f2daa44ac51a24d082ad11dbe04b26d1 /prosodyctl
parent37566b1cc38d34e84673d1a1d3d979df6a2bade0 (diff)
downloadprosody-6e59b775022a6c385ce878898bf08a9def1f363c.tar.gz
prosody-6e59b775022a6c385ce878898bf08a9def1f363c.zip
prosodyctl about: Split out libraries into a separate section
Currently libevent and libunbound would show up under Lua modules but they are not, so a separate section seems more appropriate.
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl15
1 files changed, 10 insertions, 5 deletions
diff --git a/prosodyctl b/prosodyctl
index b5361d95..d220355c 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -438,7 +438,7 @@ function commands.about(arg)
print("");
print("# Lua module versions");
local module_versions, longest_name = {}, 8;
- local luaevent =dependencies.softreq"luaevent";
+ local library_versions = {};
dependencies.softreq"ssl";
dependencies.softreq"DBI";
local lunbound = dependencies.softreq"lunbound";
@@ -451,19 +451,24 @@ function commands.about(arg)
module_versions[name] = module._VERSION;
end
end
- if luaevent then
- module_versions["libevent"] = luaevent.core.libevent_version();
- end
if lunbound then
if not module_versions["lunbound"] then
module_versions["lunbound"] = "<= 0.5";
end
- module_versions["libunbound"] = lunbound._LIBVER;
+ library_versions["libunbound"] = lunbound._LIBVER;
end
for name, version in sorted_pairs(module_versions) do
print(name..":"..string.rep(" ", longest_name-#name), version);
end
print("");
+ print("# library versions");
+ if require "net.server".event_base then
+ library_versions["libevent"] = require"luaevent".core.libevent_version();
+ end
+ for name, version in sorted_pairs(library_versions) do
+ print(name..":"..string.rep(" ", longest_name-#name), version);
+ end
+ print("");
end
function commands.reload(arg)