diff options
| author | ruki <[email protected]> | 2018-09-17 23:18:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-09-17 13:49:19 +0800 |
| commit | c245cea7fa908d0cde712e9f009b125aa814b2be (patch) | |
| tree | 925eb43f2b7e7906475d05065eeb7a08b4e69fa5 /xmake/actions/require/install.lua | |
| parent | 95cc8416fb712fca35223f3ec5b94f91b4402f66 (diff) | |
improve to install packages
Diffstat (limited to 'xmake/actions/require/install.lua')
| -rw-r--r-- | xmake/actions/require/install.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/require/install.lua b/xmake/actions/require/install.lua index c4da493a9..120d6ed96 100644 --- a/xmake/actions/require/install.lua +++ b/xmake/actions/require/install.lua @@ -80,7 +80,7 @@ function _check_missing_packages(packages) local optional_missing = {} for _, instance in ipairs(packages) do if not instance:exists() and (#instance:urls() > 0 or instance:from("system")) then - if instance:requireinfo().optional then + if instance:optional() then optional_missing[instance:name()] = instance else table.insert(packages_missing, instance:name()) |
