diff options
Diffstat (limited to 'xmake/modules/private/action/require/impl/check_api.lua')
| -rw-r--r-- | xmake/modules/private/action/require/impl/check_api.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/impl/check_api.lua b/xmake/modules/private/action/require/impl/check_api.lua index 7fd5459c1..63637ac25 100644 --- a/xmake/modules/private/action/require/impl/check_api.lua +++ b/xmake/modules/private/action/require/impl/check_api.lua @@ -21,10 +21,12 @@ import("private.check.checker") import("private.check.show") -function main(package) +function main(package, opt) + opt = opt or {} + local checkers = checker.checkers() for name, info in table.orderpairs(checkers) do - if info.load then + if (info.load and opt.load) or (info.download_failure and opt.download_failure) then local check = import("private.check.checkers." .. name, {anonymous = true}) check({package = package, show = show.wshow}) end |
