mirror of https://github.com/GNOME/gimp.git
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:
parent
56b3272c7d
commit
81db76ea30
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue