diff options
| author | ruki <[email protected]> | 2024-07-27 22:55:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-27 22:55:23 +0800 |
| commit | e63b39cbf9a600115ecf0ee348e4eab5d7025034 (patch) | |
| tree | 6a32ee22b8706cd769ee258befa2073ce7af6ced /xmake/core/package/package.lua | |
| parent | a766d76d6b3f43c4fa2058f59c565c46a59b1118 (diff) | |
fix fetch sysincludedirs
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 7 |
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 |
