Mercurial > prosody-hg
diff prosody @ 2797:76777fee99b7
util.dependencies: Load luarocks.loader/luarocks.require
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 28 Jan 2010 18:10:20 +0000 |
| parents | 2419ca0bfab3 |
| children | 1edeb8fe7d14 |
line wrap: on
line diff
--- a/prosody Wed Jan 13 00:04:38 2010 +0000 +++ b/prosody Thu Jan 28 18:10:20 2010 +0000 @@ -31,7 +31,9 @@ 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 -- Replace require with one that doesn't pollute _G do
