Retry for longer on failed cowbuilder operations

There's really nothing to do but retry.
This commit is contained in:
Travis Cross 2014-06-11 00:55:06 +00:00
parent 8a4a8f6fb8
commit afb4a20090
1 changed files with 4 additions and 4 deletions

8
debian/util.sh vendored
View File

@ -295,15 +295,15 @@ build_debs () {
}
if ! [ -d $cow_img ]; then
announce "Creating base $distro-$arch image..."
local x=5
local x=30
while ! cow --create; do
[ $x -lt 1 ] && break; sleep 60; x=$((x-1))
[ $x -lt 1 ] && break; sleep 120; x=$((x-1))
done
fi
announce "Updating base $distro-$arch image..."
local x=5
local x=30
while ! cow --update; do
[ $x -lt 1 ] && break; sleep 60; x=$((x-1))
[ $x -lt 1 ] && break; sleep 120; x=$((x-1))
done
announce "Building $distro-$arch DEBs from $dsc..."
if $debug_hook; then