diff options
| author | ruki <[email protected]> | 2023-11-20 22:35:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-20 22:35:06 +0800 |
| commit | 9619fa5f353216abc628f8117fba6c0931d77355 (patch) | |
| tree | 9476c6d118b09a4c56822b8ade02decf1ff14682 /xmake/core/package/package.lua | |
| parent | 9aad219bee6773423b05361c1b6ed33d1840ebb5 (diff) | |
fix fetch system deps #4399
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 063213bbb..db34aadc6 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -578,7 +578,16 @@ function _instance:is_fetchonly() if project and project.policy("package.fetch_only") then return true end - return self:get("fetch") and not self:get("install") + -- only fetch script + if self:get("fetch") and not self:get("install") then + return true + end + -- only from system + local requireinfo = self:requireinfo() + if requireinfo and requireinfo.system then + return true + end + return false end -- is optional package? |
