提交 9b79922a authored 作者: Travis Cross's avatar Travis Cross

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.
上级 5fd025eb
...@@ -282,7 +282,10 @@ build_debs () { ...@@ -282,7 +282,10 @@ build_debs () {
cow --create cow --create
fi fi
announce "Updating base $distro-$arch image..." 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..." announce "Building $distro-$arch DEBs from $dsc..."
if $debug_hook; then if $debug_hook; then
mkdir -p .hooks mkdir -p .hooks
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论