Software /
code /
prosody
Comparison
prosodyctl @ 6711:76683a3f3d75
prosodyctl: Soft-require LuaSec and LuaEvent so they show up in the module version listing
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 18 May 2015 22:04:12 +0200 |
parent | 6637:ecc039288edc |
child | 6751:18f18bceb662 |
comparison
equal
deleted
inserted
replaced
6710:d062314446f6 | 6711:76683a3f3d75 |
---|---|
576 or "Not installed"; | 576 or "Not installed"; |
577 print("LuaRocks: ", luarocks_status); | 577 print("LuaRocks: ", luarocks_status); |
578 print(""); | 578 print(""); |
579 print("# Lua module versions"); | 579 print("# Lua module versions"); |
580 local module_versions, longest_name = {}, 8; | 580 local module_versions, longest_name = {}, 8; |
581 local luaevent =dependencies.softreq"luaevent"; | |
582 local ssl = dependencies.softreq"ssl"; | |
581 for name, module in pairs(package.loaded) do | 583 for name, module in pairs(package.loaded) do |
582 if type(module) == "table" and rawget(module, "_VERSION") | 584 if type(module) == "table" and rawget(module, "_VERSION") |
583 and name ~= "_G" and not name:match("%.") then | 585 and name ~= "_G" and not name:match("%.") then |
584 if #name > longest_name then | 586 if #name > longest_name then |
585 longest_name = #name; | 587 longest_name = #name; |