Comparison

prosodyctl @ 9991:8cd180dc18a8 0.11

prosodyctl: Include version of LuaDBI in 'about'
author Kim Alvefur <zash@zash.se>
date Wed, 01 May 2019 22:34:15 +0200
parent 9856:4be2af104bf0
child 9992:9d6baacdd8e6
child 10257:26afb1a6d086
comparison
equal deleted inserted replaced
9973:640a2b8e7806 9991:8cd180dc18a8
393 print(""); 393 print("");
394 print("# Lua module versions"); 394 print("# Lua module versions");
395 local module_versions, longest_name = {}, 8; 395 local module_versions, longest_name = {}, 8;
396 local luaevent =dependencies.softreq"luaevent"; 396 local luaevent =dependencies.softreq"luaevent";
397 dependencies.softreq"ssl"; 397 dependencies.softreq"ssl";
398 dependencies.softreq"DBI";
398 for name, module in pairs(package.loaded) do 399 for name, module in pairs(package.loaded) do
399 if type(module) == "table" and rawget(module, "_VERSION") 400 if type(module) == "table" and rawget(module, "_VERSION")
400 and name ~= "_G" and not name:match("%.") then 401 and name ~= "_G" and not name:match("%.") then
401 if #name > longest_name then 402 if #name > longest_name then
402 longest_name = #name; 403 longest_name = #name;