提交 8a4a8f6f authored 作者: Travis Cross's avatar Travis Cross

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.
上级 12da85ef
...@@ -295,7 +295,10 @@ build_debs () { ...@@ -295,7 +295,10 @@ build_debs () {
} }
if ! [ -d $cow_img ]; then if ! [ -d $cow_img ]; then
announce "Creating base $distro-$arch image..." 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 fi
announce "Updating base $distro-$arch image..." announce "Updating base $distro-$arch image..."
local x=5 local x=5
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论