diff options
| author | ruki <[email protected]> | 2021-03-12 00:48:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-12 00:48:47 +0800 |
| commit | baa4c6ab9d2c7b6ff03255b8cc1a7890d9ef6602 (patch) | |
| tree | 2fb6b1c1ab7f27413e52fc0bee6bdecb9586349f /xmake/modules/private/action/require/impl/install_packages.lua | |
| parent | 6235369194c12c47b6977970d2ae2b1e92c4deb5 (diff) | |
rename :optional to is_optional
Diffstat (limited to 'xmake/modules/private/action/require/impl/install_packages.lua')
| -rw-r--r-- | xmake/modules/private/action/require/impl/install_packages.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua index d89f83e05..f283b5725 100644 --- a/xmake/modules/private/action/require/impl/install_packages.lua +++ b/xmake/modules/private/action/require/impl/install_packages.lua @@ -64,7 +64,7 @@ end -- get package configs string function _get_package_configs_str(instance) local configs = {} - if instance:optional() then + if instance:is_optional() then table.insert(configs, "optional") end local requireinfo = instance:requireinfo() @@ -443,7 +443,7 @@ function main(requires, opt) packages_download[tostring(instance)] = instance end table.insert(packages_install, instance) - elseif not instance:optional() then + elseif not instance:is_optional() then table.insert(packages_unsupported, instance) end end @@ -463,7 +463,7 @@ function main(requires, opt) if not _get_confirm(packages_install) then local packages_must = {} for _, instance in ipairs(packages_install) do - if not instance:optional() then + if not instance:is_optional() then table.insert(packages_must, instance:displayname()) end end |
