Skip to content

Commit

Permalink
Added in specific check for install to guard against "*".
Browse files Browse the repository at this point in the history
  • Loading branch information
adamharrison committed Jun 9, 2024
1 parent 886cb4b commit 064b760
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lpm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,7 @@ end

function Bottle:invalidate_cache()
self.all_addons_cache = nil
self.installed_cache = nil
end

function Bottle:all_addons()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 064b760

Please sign in to comment.