diff options
| author | ruki <[email protected]> | 2021-03-12 00:48:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-12 00:48:25 +0800 |
| commit | 6235369194c12c47b6977970d2ae2b1e92c4deb5 (patch) | |
| tree | 8a10abef4e1cfb9f42fd12329c424bdf7b215bcf | |
| parent | e9a095ebab17c52d65e23139d29eb13e8a62125f (diff) | |
improve to check missing package
| -rw-r--r-- | xmake/modules/private/action/require/install.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/install.lua b/xmake/modules/private/action/require/install.lua index 6e6a3ad2b..7df999c93 100644 --- a/xmake/modules/private/action/require/install.lua +++ b/xmake/modules/private/action/require/install.lua @@ -35,7 +35,7 @@ function _check_missing_packages(packages) local packages_missing = {} local optional_missing = {} for _, instance in ipairs(packages) do - if package.should_install(instance) then + if package.should_install(instance) or (instance:is_fetchonly() and not instance:exists()) then if instance:optional() then optional_missing[instance:name()] = instance else |
