diff options
| author | Luigi F. Cruz <luigifcruz@gmail.com> | 2020-02-20 14:18:50 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-20 17:18:50 +0000 |
| commit | 38d22e976a2d6ad2ccabc2704c966f586550122c (patch) | |
| tree | 5e1a6d5f660a384c85de8a4c5e61f1aef9bdd680 | |
| parent | 5f884374b6ac6e155330c58caa1fb7249b8badf1 (diff) | |
Retry apt downloads 3 times
Fixes #194
| -rwxr-xr-x | build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -20,7 +20,7 @@ EOF PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages-nr")" if [ -n "$PACKAGES" ]; then on_chroot << EOF -apt-get install --no-install-recommends -y $PACKAGES +apt-get -o APT::Acquire::Retries=3 install --no-install-recommends -y $PACKAGES EOF fi log "End ${SUB_STAGE_DIR}/${i}-packages-nr" @@ -30,7 +30,7 @@ EOF PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")" if [ -n "$PACKAGES" ]; then on_chroot << EOF -apt-get install -y $PACKAGES +apt-get -o APT::Acquire::Retries=3 install -y $PACKAGES EOF fi log "End ${SUB_STAGE_DIR}/${i}-packages" |
