diff options
author | Kim Alvefur <zash@zash.se> | 2021-01-16 00:24:06 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-01-16 00:24:06 +0100 |
commit | 81181623fd5db5762f890df5a91a23945b714969 (patch) | |
tree | 1593e75ad23da69374c5ee0ea16820e83cfe7b9f | |
parent | ea16bff7c8a2b6274fe9b9184a876a61922330f2 (diff) | |
download | prosody-81181623fd5db5762f890df5a91a23945b714969.tar.gz prosody-81181623fd5db5762f890df5a91a23945b714969.zip |
core.modulemanager: Fix resource location compat with LuaRocks 2.x
The path doesn't include lua version, at least least on Debian, which
still has luarocks 2.x
-rw-r--r-- | core/modulemanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 3f4233e6..9d2a74c7 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -209,7 +209,7 @@ local function do_load_module(host, module_name, state) if not load_manifest then -- COMPAT Luarocks 2.x log("debug", "Could not load LuaRocks 3.x manifest, trying 2.x", err); - luarocks_path = custom_plugins.."/lib/luarocks/rocks-"..lua_version; + luarocks_path = custom_plugins.."/lib/luarocks/rocks"; manifest_filename = luarocks_path.."/manifest"; load_manifest, err = envload.envloadfile(manifest_filename, manifest); end |