changeset 14193:de95e133af8e 13.0

util.paths: Fix check for adding installer path to package.cpath
author Matthew Wild <mwild1@gmail.com>
date Tue, 26 May 2026 11:50:20 +0100
parents e86ede52bfbe
children 159047a453f2
files util/paths.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/paths.lua	Tue May 26 11:46:45 2026 +0100
+++ b/util/paths.lua	Tue May 26 11:50:20 2026 +0100
@@ -62,7 +62,7 @@
 		package.path = package.path..lua_path_sep..installer_plugin_path..dir_sep.."share"..sub_path.."?.lua";
 		package.path = package.path..lua_path_sep..installer_plugin_path..dir_sep.."share"..sub_path.."?"..dir_sep.."init.lua";
 	end
-	if not string.find(package.path, installer_plugin_path, 1, true) then
+	if not string.find(package.cpath, installer_plugin_path, 1, true) then
 		package.cpath = package.cpath..lua_path_sep..installer_plugin_path..dir_sep.."lib"..sub_path.."?.so";
 	end
 end