From 064b760422cca8aee3342b3890c22b4f078e4650 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 9 Jun 2024 14:34:29 -0400 Subject: Added in specific check for install to guard against "*". --- src/lpm.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lpm.lua b/src/lpm.lua index 3f07fc4..98be79c 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1567,6 +1567,7 @@ end function Bottle:invalidate_cache() self.all_addons_cache = nil + self.installed_cache = nil end function Bottle:all_addons() @@ -1993,7 +1994,7 @@ function lpm.install(type, ...) if #to_install == 0 and #potential_addon_list == 0 then error("no addons specified for install") end local installing = {} common.each(to_install, function(e) - if not installing[e.id] then + if not installing[e.id] and (REINSTALL or not e:is_installed(system_bottle)) then e:install(system_bottle, installing) end end) -- cgit v1.2.3