From e37fdc9713cacc6182299ab6f6c632f6bcb75926 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 20 Oct 2024 14:22:08 -0400 Subject: Ensured that "any" was being respected. --- src/lpm.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/lpm.lua b/src/lpm.lua index 9c94bc9..c77e511 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1922,8 +1922,7 @@ function lpm.retrieve_addons(lite_xl, arguments, filters) local repo, remainder = common.split("@", str) if not remainder then repo = nil end local id, version = common.split(":", remainder or str) - - local potentials = { system_bottle:get_addon(id, version, common.merge({ mod_version = lite_xl.mod_version, repository = repo }, filters or {})) } + local potentials = { system_bottle:get_addon(id, version, common.merge({ mod_version = (MOD_VERSION ~= "any" and (MOD_VERSION or lite_xl.mod_version)), repository = repo }, filters or {})) } local uniq = {} local found_one = false for i, addon in ipairs(potentials) do -- cgit v1.2.3