summaryrefslogtreecommitdiff
path: root/xmake/core/package
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-24 00:54:56 +0800
committerruki <[email protected]>2020-03-23 23:29:36 +0800
commit0e3ec2c752a353cd32f119b0ec363f9a2eb694f2 (patch)
tree20ab3c5263e7bfd7b35207171b3ab7696ed67181 /xmake/core/package
parent9243d46338684ca5bceafe91ab5e45db3dc4fabf (diff)
improve system argument for package
Diffstat (limited to 'xmake/core/package')
-rw-r--r--xmake/core/package/package.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 096a5ddd2..7ea3ff717 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -806,6 +806,11 @@ function _instance:fetch(opt)
-- true: only find system package
-- false: only find xmake packages
local system = opt.system or self:requireinfo().system
+ if self:is3rd() then
+ -- we need ignore `{system = true/false}` argument if be 3rd package
+ -- @see https://github.com/xmake-io/xmake/issues/726
+ system = nil
+ end
-- fetch binary tool?
fetchinfo = nil