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
--- a/core/modulemanager.lua Fri Jan 15 18:42:45 2021 +0000
+++ b/core/modulemanager.lua Sat Jan 16 00:24:06 2021 +0100
@@ -209,7 +209,7 @@
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