瀏覽代碼

Add double apt command to fix fetch error.

tags/v4.0.0-beta.1
Luigi F. Cruz 4 年之前
committed by GitHub
父節點
當前提交
470b94beb0
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. +4
    -2
      builder/build.sh

+ 4
- 2
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"


Loading…
取消
儲存