summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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?