diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lpm.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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) |