mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
Retry updating base image
If updating the base image fails, retry a few times. If that doesn't work, simply move on; the update usually fails because Debian is updating its mirrors; it's not important that we be absolutely up to date.
This commit is contained in:
parent
5fd025eb66
commit
9b79922a51
5
debian/util.sh
vendored
5
debian/util.sh
vendored
@ -282,7 +282,10 @@ build_debs () {
|
||||
cow --create
|
||||
fi
|
||||
announce "Updating base $distro-$arch image..."
|
||||
cow --update
|
||||
local x=5
|
||||
while ! cow --update; do
|
||||
[ $x -lt 1 ] && break; sleep 60; x=$((x-1))
|
||||
done
|
||||
announce "Building $distro-$arch DEBs from $dsc..."
|
||||
if $debug_hook; then
|
||||
mkdir -p .hooks
|
||||
|
Loading…
x
Reference in New Issue
Block a user