summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-20 22:35:06 +0800
committerruki <[email protected]>2023-11-20 22:35:06 +0800
commit9619fa5f353216abc628f8117fba6c0931d77355 (patch)
tree9476c6d118b09a4c56822b8ade02decf1ff14682 /xmake/core/package/package.lua
parent9aad219bee6773423b05361c1b6ed33d1840ebb5 (diff)
fix fetch system deps #4399
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 063213bbb..db34aadc6 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -578,7 +578,16 @@ function _instance:is_fetchonly()
if project and project.policy("package.fetch_only") then
return true
end
- return self:get("fetch") and not self:get("install")
+ -- only fetch script
+ if self:get("fetch") and not self:get("install") then
+ return true
+ end
+ -- only from system
+ local requireinfo = self:requireinfo()
+ if requireinfo and requireinfo.system then
+ return true
+ end
+ return false
end
-- is optional package?