summaryrefslogtreecommitdiff
path: root/xmake/actions/require/install.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-09-17 23:18:13 +0800
committerruki <[email protected]>2018-09-17 13:49:19 +0800
commitc245cea7fa908d0cde712e9f009b125aa814b2be (patch)
tree925eb43f2b7e7906475d05065eeb7a08b4e69fa5 /xmake/actions/require/install.lua
parent95cc8416fb712fca35223f3ec5b94f91b4402f66 (diff)
improve to install packages
Diffstat (limited to 'xmake/actions/require/install.lua')
-rw-r--r--xmake/actions/require/install.lua2
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())