mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
prosodyctl: Fix nil global access traceback in prosodyctl about
(luarocks 2.2.0 no longer uses module())
This commit is contained in:
parent
04a51b5ddf
commit
30f8b752e6
1 changed files with 1 additions and 1 deletions
|
@ -548,7 +548,7 @@ function commands.about(arg)
|
||||||
print(" "..path);
|
print(" "..path);
|
||||||
end
|
end
|
||||||
print("");
|
print("");
|
||||||
local luarocks_status = (pcall(require, "luarocks.loader") and "Installed ("..(luarocks.cfg.program_version or "2.x+")..")")
|
local luarocks_status = (pcall(require, "luarocks.loader") and "Installed ("..(package.loaded["luarocks.cfg"].program_version or "2.x+")..")")
|
||||||
or (pcall(require, "luarocks.require") and "Installed (1.x)")
|
or (pcall(require, "luarocks.require") and "Installed (1.x)")
|
||||||
or "Not installed";
|
or "Not installed";
|
||||||
print("LuaRocks: ", luarocks_status);
|
print("LuaRocks: ", luarocks_status);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue