summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/install_packages.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-21 18:18:38 +0800
committerruki <[email protected]>2021-02-21 18:18:38 +0800
commit0d918cd313d6df1a07bebaff687d744ef5522e50 (patch)
tree000de6fbabbb00c4c502058c73f9532e25fd3e11 /xmake/modules/private/action/require/impl/install_packages.lua
parent5e1a9ad514f20214515815e14ee7d92347d0ced4 (diff)
fix should install for package again
Diffstat (limited to 'xmake/modules/private/action/require/impl/install_packages.lua')
-rw-r--r--xmake/modules/private/action/require/impl/install_packages.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua
index 2e56ad3a4..765b71c3d 100644
--- a/xmake/modules/private/action/require/impl/install_packages.lua
+++ b/xmake/modules/private/action/require/impl/install_packages.lua
@@ -404,9 +404,9 @@ end
-- should install?
function _should_install(instance)
- if instance:exists() and instance:parents() then
+ 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 ipairs(instance:parents()) do
+ for _, parent in pairs(instance:parents()) do
if not parent:exists() then
return true
end