Commit f90a4c9b authored by Mattia Rizzolo's avatar Mattia Rizzolo

try retrying once the bzr pull operation if it fails

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 51a43724
...@@ -13,7 +13,10 @@ bzr_clone_repo() { ...@@ -13,7 +13,10 @@ bzr_clone_repo() {
if [[ ! -d "${dest}" ]]; then if [[ ! -d "${dest}" ]]; then
bzr branch "${url}" "${dest}" -q bzr branch "${url}" "${dest}" -q
else else
(cd "${dest}" && timeout -k 11m 10m bzr pull -q) # launchpad's bzr server can be way too flicky... so just retry once
if ! (cd "${dest}" && timeout -k 6m 5m bzr pull -q); then
(cd "${dest}" && timeout -k 6m 5m bzr pull -q)
fi
fi fi
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment