summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-06-02 23:33:26 +0800
committerruki <[email protected]>2021-06-02 23:33:26 +0800
commitbccbaae0a466152fa648ed10156fb6295c862c37 (patch)
treeab6bb7cec9d359b6cb2ff92e3709863ce6ad2a6d /xmake/core/package/package.lua
parent76a7ac04e4a1a07347fd1fb6bc43374e2ff88dc6 (diff)
fix fetch package
Diffstat (limited to 'xmake/core/package/package.lua')
-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 72d8aa5f5..d68bcff57 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1234,7 +1234,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() and not self:is_fetchonly() then
+ if not fetchinfo and system ~= true and not self:is_thirdparty() then
fetchinfo = self:_fetch_tool({require_version = self:version_str(), force = opt.force})
if fetchinfo then
is_system = self._is_system
@@ -1251,7 +1251,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() and not self:is_fetchonly() then
+ if not fetchinfo and system ~= true and not self:is_thirdparty() then
fetchinfo = self:_fetch_library({require_version = self:version_str(), external = external, force = opt.force})
if fetchinfo then
is_system = self._is_system