diff options
| author | ruki <[email protected]> | 2024-09-21 23:42:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-09-23 09:43:53 +0800 |
| commit | feb7563b4ea3712079063c3a81a13e189f49ac75 (patch) | |
| tree | 183fe3dad2085baeadccf930ac1cef8bab798310 | |
| parent | 42493b00d94baf4a19a153c4759d323fedd1089d (diff) | |
improve tips
| -rw-r--r-- | xmake/modules/private/action/require/impl/install_packages.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua index 0dc0e61ee..303b300d9 100644 --- a/xmake/modules/private/action/require/impl/install_packages.lua +++ b/xmake/modules/private/action/require/impl/install_packages.lua @@ -738,9 +738,18 @@ function _install_packages(requires, opt) -- exists unsupported packages? if #packages_unsupported > 0 then - cprint("${bright color.warning}note: ${clear}the following packages are unsupported:") + local packages_unsupported_maps = {} for _, instance in ipairs(packages_unsupported) do - cprint(" ${yellow}->${clear} %s %s ${dim}%s", instance:displayname(), instance:version_str() or "", package.get_configs_str(instance)) + local key = instance:plat() .. "/" .. instance:arch() + packages_unsupported_maps[key] = packages_unsupported_maps[key] or {} + table.insert(packages_unsupported_maps[key], instance) + end + for key, instances in pairs(packages_unsupported_maps) do + cprint("${bright color.warning}note: ${clear}the following packages are unsupported on %s:", key) + for _, instance in ipairs(instances) do + cprint(" ${yellow}->${clear} %s %s ${dim}%s", + instance:displayname(), instance:version_str() or "", package.get_configs_str(instance)) + end end has_errors = true end |
