From 0968eeb58991df5c4e7b48f0e3bf5e5118d1bde4 Mon Sep 17 00:00:00 2001 From: Drew Walters Date: Wed, 6 Nov 2019 22:04:30 +0000 Subject: [PATCH] mini-mirror: Add retries to package downloads Currently, a single package download failure causes the mini-mirror build job to fail. This change adds three retries [0] to package downloads to circumvent intermittent download errors due to a bad network connection. An aptly version of 1.0.0 or greater is required for this feature. [0] https://www.aptly.info/doc/aptly/mirror/update/ Change-Id: Ic186398a4fd93322060d5116325e8770ca92f35d Signed-off-by: Drew Walters --- mini-mirror/tools/publish_snapshots.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini-mirror/tools/publish_snapshots.sh b/mini-mirror/tools/publish_snapshots.sh index 65b0871..8a0da98 100755 --- a/mini-mirror/tools/publish_snapshots.sh +++ b/mini-mirror/tools/publish_snapshots.sh @@ -61,7 +61,7 @@ for source_prefix in /opt/sources/*; do -filter-with-deps \ "${name}" "${repo}" "${dist}" "${component}" - aptly mirror update -config="${conf}" "${name}" + aptly mirror update -config="${conf}" -max-tries=3 "${name}" aptly snapshot create -config="${conf}" "${name}" from mirror "${name}" done