diff options
| -rw-r--r-- | xmake/modules/private/action/require/impl/utils/should_install.lua | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
