common: retry ftp download during CI

This commit is contained in:
Piotr Wójcik 2020-01-29 23:28:40 +01:00 committed by Piotr
parent 3d18522142
commit 588e8cdb7b
3 changed files with 18 additions and 4 deletions

View file

@ -13,6 +13,8 @@ if [ -r /proc/cpuinfo ]; then
NPROCS=$(grep ^proc /proc/cpuinfo|wc -l)
fi
export FTP_RETRIES=10
for pkg in ${PKGS}; do
/hostrepo/xbps-src -j$NPROCS -H "$HOME"/hostdir $arch pkg "$pkg"
[ $? -eq 1 ] && exit 1