Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 21: [PATCH 21/68] ci: retry failed apt index refreshes

ci/test/01_base_install.sh

Before: ci/test/01_base_install.sh · After: ci/test/01_base_install.sh

File metadata
index d26bda3d23ba1ac4e6f0efea9c31a887c29a27bc..2cec3e853ab60a688ce171a8d953642137b0ed3a 100755

Download original patch · Release notes

Diff rows 1–16 of 16. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

ci/test/01_base_install.sh CHANGED
@@ -22,7 +22,7 @@ if [ -n "$DPKG_ADD_ARCH" ]; then
22
  fi
23
 
24
  if [ -n "${APT_LLVM_V}" ]; then
25
- ${CI_RETRY_EXE} apt-get update
26
  ${CI_RETRY_EXE} apt-get install curl -y
27
  curl "https://apt.llvm.org/llvm-snapshot.gpg.key" | tee "/etc/apt/trusted.gpg.d/apt.llvm.org.asc"
28
  (
@@ -40,7 +40,7 @@ elif [ "$CI_OS_NAME" != "macos" ]; then
40
  if [[ -n "${APPEND_APT_SOURCES_LIST}" ]]; then
41
  echo "${APPEND_APT_SOURCES_LIST}" >> /etc/apt/sources.list
42
  fi
43
- ${CI_RETRY_EXE} apt-get update
44
  ${CI_RETRY_EXE} bash -c "apt-get install --no-install-recommends --no-upgrade -y $PACKAGES $CI_BASE_PACKAGES"
45
  fi
46
 
 
22
  fi
23
 
24
  if [ -n "${APT_LLVM_V}" ]; then
25
+ ${CI_RETRY_EXE} apt-get -o APT::Update::Error-Mode=any update
26
  ${CI_RETRY_EXE} apt-get install curl -y
27
  curl "https://apt.llvm.org/llvm-snapshot.gpg.key" | tee "/etc/apt/trusted.gpg.d/apt.llvm.org.asc"
28
  (
 
40
  if [[ -n "${APPEND_APT_SOURCES_LIST}" ]]; then
41
  echo "${APPEND_APT_SOURCES_LIST}" >> /etc/apt/sources.list
42
  fi
43
+ ${CI_RETRY_EXE} apt-get -o APT::Update::Error-Mode=any update
44
  ${CI_RETRY_EXE} bash -c "apt-get install --no-install-recommends --no-upgrade -y $PACKAGES $CI_BASE_PACKAGES"
45
  fi
46