From 3de14fa6738d4cb9f2bf5b0fc6e635776f82d407 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 21 Feb 2021 18:40:55 +0800 Subject: fix should install --- xmake/modules/private/action/require/impl/utils/should_install.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xmake/modules/private/action/require/impl/utils/should_install.lua b/xmake/modules/private/action/require/impl/utils/should_install.lua index ca104787f..fe1b0d834 100644 --- a/xmake/modules/private/action/require/impl/utils/should_install.lua +++ b/xmake/modules/private/action/require/impl/utils/should_install.lua @@ -21,6 +21,9 @@ -- should install? function _should_install(instance) + if instance:exists() then + return false + end if instance:parents() then -- if all the packages that depend on it already exist, then there is no need to install it for _, parent in pairs(instance:parents()) do @@ -29,7 +32,7 @@ function _should_install(instance) end end else - return not instance:exists() + return true end end -- cgit v1.3.1