From 8ee0c9e7be8b8866dc87c90c2bad309eaf8d041f Mon Sep 17 00:00:00 2001 From: elsid Date: Sun, 20 Apr 2025 02:16:24 +0200 Subject: [PATCH] Retry apt-get update and add-apt-repository --- CI/install_debian_deps.sh | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/CI/install_debian_deps.sh b/CI/install_debian_deps.sh index d29f16f55f..3ba66133ca 100755 --- a/CI/install_debian_deps.sh +++ b/CI/install_debian_deps.sh @@ -95,7 +95,7 @@ declare -rA GROUPED_DEPS=( [libasan6]="libasan6" [android]="binutils build-essential cmake ccache curl unzip git pkg-config" - + [openmw-clang-format]=" clang-format-14 git-core @@ -126,10 +126,24 @@ export APT_CACHE_DIR="${PWD}/apt-cache" export DEBIAN_FRONTEND=noninteractive set -x mkdir -pv "$APT_CACHE_DIR" -apt-get update -yqq + +while true; do + apt-get update -yqq && break +done + apt-get -qq -o dir::cache::archives="$APT_CACHE_DIR" install -y --no-install-recommends software-properties-common gnupg >/dev/null -add-apt-repository -y ppa:openmw/openmw -add-apt-repository -y ppa:openmw/openmw-daily -add-apt-repository -y ppa:openmw/staging + +while true; do + add-apt-repository -y ppa:openmw/openmw && break +done + +while true; do + add-apt-repository -y ppa:openmw/openmw-daily && break +done + +while true; do + add-apt-repository -y ppa:openmw/staging && break +done + apt-get -qq -o dir::cache::archives="$APT_CACHE_DIR" install -y --no-install-recommends "${deps[@]}" >/dev/null apt list --installed