core.modulemanager: Fix resource location compat with LuaRocks 2.x
authorKim Alvefur <zash@zash.se>
Sat, 16 Jan 2021 00:24:06 +0100
changeset 11291 b602dd3c4bbc
parent 11290 336cba957c88
child 11292 5fd1f1b544a0
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
core/modulemanager.lua
--- 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