Skip to content

Commit 9e4a318

Browse files
committed
ci: retry update for Ubuntu repos
1 parent 6805676 commit 9e4a318

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.gitlab/ci/cibuild-setup-ubuntu.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [[ $COMPILER == "gcc" ]]; then
3131
PACKAGES+=(gcc-$COMPILER_VERSION)
3232
elif [[ $COMPILER == "clang" ]]; then
3333
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
34-
add-apt-repository "deb http://apt.llvm.org/${RELEASE}/ llvm-toolchain-${RELEASE}-${COMPILER_VERSION} main"
34+
add-apt-repository -n "deb http://apt.llvm.org/${RELEASE}/ llvm-toolchain-${RELEASE}-${COMPILER_VERSION} main"
3535

3636
# scan-build
3737
PACKAGES+=(clang-tools-$COMPILER_VERSION clang-$COMPILER_VERSION lldb-$COMPILER_VERSION lld-$COMPILER_VERSION clangd-$COMPILER_VERSION)
@@ -40,7 +40,9 @@ else
4040
exit 1
4141
fi
4242

43-
apt-get -y update --fix-missing
43+
#apt-get -y update --fix-missing
44+
(r=3;while ! apt-get -y update --fix-missing ; do ((--r))||exit;sleep 5;echo "Retrying";done)
45+
4446
DEBIAN_FRONTEND=noninteractive apt-get -yq install "${PACKAGES[@]}"
4547
apt-get -y build-dep cryptsetup
4648

0 commit comments

Comments
 (0)