# HG changeset patch # User Waqas Hussain # Date 1413702349 14400 # Node ID ce66fe13eebe48842e8d97fde703e3598a73c4aa # Parent 19213331e7f7ff330319a38b684f7c3a5c7de61b prosodyctl: Fix nil global access traceback in `prosodyctl about` (luarocks 2.2.0 no longer uses module()) diff -r 19213331e7f7 -r ce66fe13eebe prosodyctl --- a/prosodyctl Wed Oct 15 00:39:37 2014 +0100 +++ b/prosodyctl Sun Oct 19 03:05:49 2014 -0400 @@ -548,7 +548,7 @@ print(" "..path); end 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 "Not installed"; print("LuaRocks: ", luarocks_status);