diff options
| author | ruki <[email protected]> | 2021-02-21 18:40:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-02-21 18:40:55 +0800 |
| commit | 3de14fa6738d4cb9f2bf5b0fc6e635776f82d407 (patch) | |
| tree | 560b1e7130610df8eee20ee1a3446577e868671f | |
| parent | d3673a3301b91141c76921947dc523496e4cc4c8 (diff) | |
fix should install
| -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 |
