Comparison

prosodyctl @ 6498:ce66fe13eebe

prosodyctl: Fix nil global access traceback in `prosodyctl about` (luarocks 2.2.0 no longer uses module())
author Waqas Hussain <waqas20@gmail.com>
date Sun, 19 Oct 2014 03:05:49 -0400
parent 6356:fb1535328ac7
child 6501:71b6e8b48a12
child 7676:7311dc843718
comparison
equal deleted inserted replaced
6497:19213331e7f7 6498:ce66fe13eebe
546 print("Lua C module search paths:"); 546 print("Lua C module search paths:");
547 for path in package.cpath:gmatch("[^;]+") do 547 for path in package.cpath:gmatch("[^;]+") do
548 print(" "..path); 548 print(" "..path);
549 end 549 end
550 print(""); 550 print("");
551 local luarocks_status = (pcall(require, "luarocks.loader") and "Installed ("..(luarocks.cfg.program_version or "2.x+")..")") 551 local luarocks_status = (pcall(require, "luarocks.loader") and "Installed ("..(package.loaded["luarocks.cfg"].program_version or "2.x+")..")")
552 or (pcall(require, "luarocks.require") and "Installed (1.x)") 552 or (pcall(require, "luarocks.require") and "Installed (1.x)")
553 or "Not installed"; 553 or "Not installed";
554 print("LuaRocks: ", luarocks_status); 554 print("LuaRocks: ", luarocks_status);
555 print(""); 555 print("");
556 print("# Lua module versions"); 556 print("# Lua module versions");