File tree 1 file changed +8
-3
lines changed
xmake/modules/private/action/require/impl
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,8 @@ function _get_confirm_from_3rd(packages)
167
167
end
168
168
169
169
-- get user confirm
170
- function _get_confirm (packages )
170
+ function _get_confirm (packages , opt )
171
+ opt = opt or {}
171
172
172
173
-- no confirmed packages?
173
174
if # packages == 0 then
@@ -201,7 +202,11 @@ function _get_confirm(packages)
201
202
end
202
203
203
204
-- show tips
204
- cprint (" ${bright color.warning}note: ${clear}install or modify (m) these packages (pass -y to skip confirm)?" )
205
+ if opt .toolchain then
206
+ cprint (" ${bright color.warning}note: ${clear}install or modify (m) these ${bright}toolchain${clear} packages first (pass -y to skip confirm)?" )
207
+ else
208
+ cprint (" ${bright color.warning}note: ${clear}install or modify (m) these packages (pass -y to skip confirm)?" )
209
+ end
205
210
for reponame , packages in pairs (packages_repo ) do
206
211
if reponame ~= " " then
207
212
print (" in %s:" , reponame )
@@ -758,7 +763,7 @@ function _install_packages(requires, opt)
758
763
end
759
764
760
765
-- get user confirm
761
- local confirm , packages_modified = _get_confirm (packages_install )
766
+ local confirm , packages_modified = _get_confirm (packages_install , opt )
762
767
if not confirm then
763
768
local packages_must = {}
764
769
for _ , instance in ipairs (packages_install ) do
You can’t perform that action at this time.
0 commit comments