summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-27 22:55:23 +0800
committerruki <[email protected]>2024-07-27 22:55:23 +0800
commite63b39cbf9a600115ecf0ee348e4eab5d7025034 (patch)
tree6a32ee22b8706cd769ee258befa2073ce7af6ced /xmake/core/package/package.lua
parenta766d76d6b3f43c4fa2058f59c565c46a59b1118 (diff)
fix fetch sysincludedirs
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index fdfa59a42..b1da1c19e 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1931,7 +1931,8 @@ function _instance:fetch(opt)
-- attempt to get it from cache
local fetchinfo = self._FETCHINFO
- if not opt.force and opt.external == nil and opt.system == nil and fetchinfo then
+ local usecache = opt.external == nil and opt.system == nil
+ if not opt.force and usecache and fetchinfo then
return fetchinfo
end
@@ -2026,7 +2027,9 @@ function _instance:fetch(opt)
end
-- save to cache
- self._FETCHINFO = fetchinfo
+ if usecache then
+ self._FETCHINFO = fetchinfo
+ end
-- we need to update the real version if it's system package
-- @see https://github.com/xmake-io/xmake/issues/3333