# HG changeset patch # User Matthew Wild # Date 1267647144 0 # Node ID 2702ee68727de1cb80583c1d513374b9c35380c3 # Parent 76777fee99b7b8fef1ac8de20dce54e9bd52bebe prosodyctl: Fix to load LuaRocks 2.x if we have it diff -r 76777fee99b7 -r 2702ee68727d prosodyctl --- a/prosodyctl Thu Jan 28 18:10:20 2010 +0000 +++ b/prosodyctl Wed Mar 03 20:12:24 2010 +0000 @@ -30,7 +30,10 @@ end -- Required to be able to find packages installed with luarocks -pcall(require, "luarocks.require") +if not pcall(require, "luarocks.loader") then -- Try LuaRocks 2.x + pcall(require, "luarocks.require") -- Try LuaRocks 1.x +end + config = require "core.configmanager"