Skip to content

Commit

Permalink
Fix for Guldo's new issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamharrison committed Jun 9, 2024
1 parent 6e33089 commit 886cb4b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/lpm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,15 @@ function Addon:is_core(bottle) return self.location == "core" end
function Addon:is_bundled(bottle) return self.location == "bundled" end
function Addon:is_installed(bottle)
if self:is_core(bottle) or self:is_bundled(bottle) or not self.repository then return true end
if self.type == "meta" and self:is_explicitly_installed(bottle) then return true end
if self.type == "meta" then
if self:is_explicitly_installed(bottle) then return true end
for k, v in pairs(self.dependencies) do
if #common.grep({ bottle:get_addon(k) }, function(a) return a:is_installed(bottle) end) == 0 then
return false
end
end
return true
end
local install_path = self:get_install_path(bottle)
if not system.stat(install_path) then return false end
if self:is_asset() then return true end
Expand Down

0 comments on commit 886cb4b

Please sign in to comment.