Skip to content

Commit

Permalink
Workaround for failing appveyor MSYS2 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Liryna committed Feb 25, 2018
1 parent 5f4f94a commit d86b27b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,17 @@
# TODO: detect if restart is necessary and only run as many times as needed.
# Maybe two times is enough in all cases, but better be safe than sorry and run it three times.
# See https://github.com/msys2/msys2/wiki/MSYS2-installation#iii-updating-packages
# For the `--ask 20` option, see
# <https://github.com/Alexpux/MSYS2-packages/issues/1141>.
#
# Otherwise the message
#
# :: msys2-runtime and catgets are in conflict. Remove catgets? [y/N]
#
# is displayed when trying to update followed by an exit rather
# than selecting yes.
for ($i = 0; $i -lt 3; $i++) {
bash "pacman -Syuu --noconfirm --cache `"$unix_msys2_cache`""
bash "pacman -Syuu --ask 20 --noconfirm --cache `"$unix_msys2_cache`""
}
# install MinGW toolchain
bash "pacman --sync --needed --noconfirm --cache `"$unix_msys2_cache`" mingw-w64-{x86_64,i686}-toolchain mingw-w64-{x86_64,i686}-cmake"
Expand Down

0 comments on commit d86b27b

Please sign in to comment.