From: Travis Cross Date: Wed, 11 Jun 2014 00:52:12 +0000 (+0000) Subject: Retry the cowbuilder create operation on failure X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f6a51015f0ef710bfd3d098ba477abee6f20e4e;p=thirdparty%2Ffreeswitch.git Retry the cowbuilder create operation on failure Sometimes while the debian repositories are updating there are sporadic signature failures. It's annoying to have these break the build, and the only thing to do is to retry, so we'll retry here automatically. We were already retrying on the update operation that can fail in a similar manner. --- diff --git a/debian/util.sh b/debian/util.sh index 44d64962e8..6d395a784d 100755 --- a/debian/util.sh +++ b/debian/util.sh @@ -295,7 +295,10 @@ build_debs () { } if ! [ -d $cow_img ]; then announce "Creating base $distro-$arch image..." - cow --create + local x=5 + while ! cow --create; do + [ $x -lt 1 ] && break; sleep 60; x=$((x-1)) + done fi announce "Updating base $distro-$arch image..." local x=5