From 886cb4bee2fa01477da35085a9418bbeb6ce4781 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 9 Jun 2024 14:12:29 -0400 Subject: Fix for Guldo's new issue. --- src/lpm.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/lpm.lua') diff --git a/src/lpm.lua b/src/lpm.lua index 6779e95..3f07fc4 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -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 -- cgit v1.2.3