From 470b94beb01900ebc60cdcbdf235516a93e1c835 Mon Sep 17 00:00:00 2001 From: "Luigi F. Cruz" Date: Fri, 21 Feb 2020 19:38:15 -0300 Subject: [PATCH] Add double apt command to fix fetch error. --- builder/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/builder/build.sh b/builder/build.sh index 8cc77ec..73c1fe3 100755 --- a/builder/build.sh +++ b/builder/build.sh @@ -20,7 +20,8 @@ EOF PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages-nr")" if [ -n "$PACKAGES" ]; then on_chroot << EOF -apt-get -o APT::Acquire::Retries=3 install --no-install-recommends -y $PACKAGES +apt-get -o APT::Acquire::Retries=3 --fix-missing install --no-install-recommends -y $PACKAGES +apt-get -o APT::Acquire::Retries=3 --fix-missing install --no-install-recommends -y $PACKAGES EOF fi log "End ${SUB_STAGE_DIR}/${i}-packages-nr" @@ -30,7 +31,8 @@ EOF PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")" if [ -n "$PACKAGES" ]; then on_chroot << EOF -apt-get -o APT::Acquire::Retries=3 install -y $PACKAGES +apt-get -o APT::Acquire::Retries=3 --fix-missing install -y $PACKAGES +apt-get -o APT::Acquire::Retries=3 --fix-missing install -y $PACKAGES EOF fi log "End ${SUB_STAGE_DIR}/${i}-packages"