summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/install_packages.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-10 23:46:35 +0800
committerruki <[email protected]>2022-07-10 23:46:35 +0800
commit3c5afa6aa05090189e9bdf7e679bcae68511c33c (patch)
tree2208d7262419de901aacd0641647d6541aa1ec05 /xmake/modules/private/action/require/impl/install_packages.lua
parent2d2192a88204f004b74f04015c8d0bad21cc0eae (diff)
improve should install
Diffstat (limited to 'xmake/modules/private/action/require/impl/install_packages.lua')
-rw-r--r--xmake/modules/private/action/require/impl/install_packages.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua
index b69d8531d..c2e7f61d7 100644
--- a/xmake/modules/private/action/require/impl/install_packages.lua
+++ b/xmake/modules/private/action/require/impl/install_packages.lua
@@ -393,7 +393,7 @@ function _install_packages(packages_install, packages_download, installdeps)
local dep_not_found = nil
for _, dep in pairs(installdeps[tostring(pkg)]) do
local installed = packages_installed[tostring(dep)]
- if installed == false or (installed == nil and not dep:exists() and not dep:is_optional()) then
+ if installed == false or (installed == nil and package.should_install(dep) and not dep:is_optional()) then
ready = false
dep_not_found = dep
break