summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-03-12 23:49:16 +0800
committerruki <[email protected]>2019-03-12 16:55:36 +0800
commit1d6221db0af6598c74c5cbbbd37c356585029048 (patch)
treed51fca8358893f9628970cfcb4919d7a1df62958
parente763b2e433cee08eaa26ea00cd2af82bfd050a04 (diff)
fix fetch package
-rw-r--r--xmake/core/package/package.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index e9c07db69..835928041 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -557,7 +557,7 @@ function _instance:fetch(opt)
-- fetch binary tool?
fetchinfo = nil
- local isSys = false
+ local isSys = nil
if self:kind() == "binary" then
-- import find_tool
@@ -606,7 +606,9 @@ function _instance:fetch(opt)
self._FETCHINFO = fetchinfo
-- mark as system package?
- self._isSys = isSys
+ if isSys ~= nil then
+ self._isSys = isSys
+ end
-- ok
return fetchinfo