Browse Source

Add double apt command to fix fetch error.

tags/v4.0.0-beta.1
Luigi F. Cruz 4 years ago
committed by GitHub
parent
commit
470b94beb0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      builder/build.sh

+ 4
- 2
builder/build.sh View File

@@ -20,7 +20,8 @@ EOF
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages-nr")" PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages-nr")"
if [ -n "$PACKAGES" ]; then if [ -n "$PACKAGES" ]; then
on_chroot << EOF 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 EOF
fi fi
log "End ${SUB_STAGE_DIR}/${i}-packages-nr" log "End ${SUB_STAGE_DIR}/${i}-packages-nr"
@@ -30,7 +31,8 @@ EOF
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")" PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")"
if [ -n "$PACKAGES" ]; then if [ -n "$PACKAGES" ]; then
on_chroot << EOF 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 EOF
fi fi
log "End ${SUB_STAGE_DIR}/${i}-packages" log "End ${SUB_STAGE_DIR}/${i}-packages"


Loading…
Cancel
Save