build/windows: Make crossroad more persistent with MSYS2 servers

Crossroad have a tendency of failing due to internet disconnection.
Let's add code to retry the deps downloading to reduce failures.
This commit is contained in:
Bruno 2024-08-31 20:07:42 -03:00
parent 56b3272c7d
commit 81db76ea30
1 changed files with 4 additions and 2 deletions

View File

@ -64,8 +64,10 @@ else
## Install the required (pre-built) packages for babl, GEGL and GIMP
crossroad source msys2
crossroad install $(cat ${GIMP_DIR}build/windows/all-deps-uni.txt |
sed "s/\${MINGW_PACKAGE_PREFIX}-//g" | sed 's/\\//g')
deps=$(cat ${GIMP_DIR}build/windows/all-deps-uni.txt |
sed "s/\${MINGW_PACKAGE_PREFIX}-//g" | sed 's/\\//g')
## NOTE: Crossroad is too prone to fail at downloading deps so let's retry
crossroad install $deps || crossroad install $deps
if [ $? -ne 0 ]; then
echo "Installation of pre-built dependencies failed.";
exit 1;