summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-03-12 00:41:28 +0800
committerruki <[email protected]>2021-03-12 00:41:28 +0800
commite963699a72d351970cbd31246b601a9731e006a5 (patch)
tree743f2729bade415410695fa2b18b5dc7dd0fdf6c /xmake/modules/private/action/require/impl/package.lua
parent051264aa60973d3b7a1654412ea936e1da3a515c (diff)
support fetchonly
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
-rw-r--r--xmake/modules/private/action/require/impl/package.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index 3095e10a9..c088bef4c 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -587,6 +587,10 @@ function should_install(package)
if package:exists() then
return false
end
+ -- we need not install it if this package need only be fetched
+ if package:is_fetchonly() then
+ return false
+ end
if package:parents() then
-- if all the packages that depend on it already exist, then there is no need to install it
for _, parent in pairs(package:parents()) do