From ecf66aac5bed14dcb5aff3885c8d7eac12dbad34 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 17 Mar 2022 00:16:53 +0800 Subject: update fetch package --- xmake/core/package/package.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index b77b24aeb..239bbb928 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -1378,7 +1378,7 @@ end -- fetch the local package info -- --- @param opt the fetch option, e.g. {force = true, external = false} +-- @param opt the fetch option, e.g. {force = true, external = false, system = true} -- -- @return {packageinfo}, fetchfrom (e.g. xmake/system) -- @@ -1389,7 +1389,7 @@ function _instance:fetch(opt) -- attempt to get it from cache local fetchinfo = self._FETCHINFO - if not opt.force and opt.external == nil and fetchinfo then + if not opt.force and opt.external == nil and opt.system == nil and fetchinfo then return fetchinfo end -- cgit v1.3.1