summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-03-12 00:52:09 +0800
committerruki <[email protected]>2021-03-12 00:52:09 +0800
commit2490f934e09fa3e7b5cee51a91ba8de20f957b76 (patch)
tree826c2024c3ede66dd6c75a1bb7457300693c86bd
parent70c4665832899710ca30d7147cb890198ddf8c51 (diff)
improve fetch only package
-rw-r--r--xmake/core/package/package.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 731058984..e83232554 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1157,7 +1157,7 @@ function _instance:fetch(opt)
if self:is_binary() then
-- only fetch it from the xmake repository first
- if not fetchinfo and system ~= true and not self:is_thirdparty() then
+ if not fetchinfo and system ~= true and not self:is_thirdparty() and not self:is_fetchonly() then
fetchinfo = self:_fetch_tool({require_version = self:version_str(), force = opt.force})
if fetchinfo then
is_system = self._is_system
@@ -1174,7 +1174,7 @@ function _instance:fetch(opt)
else
-- only fetch it from the xmake repository first
- if not fetchinfo and system ~= true and not self:is_thirdparty() then
+ if not fetchinfo and system ~= true and not self:is_thirdparty() and not self:is_fetchonly() then
fetchinfo = self:_fetch_library({require_version = self:version_str(), external = external, force = opt.force})
if fetchinfo then
is_system = self._is_system