From 48e88e205f185952b7f5c1f6cf1f40564a5d1421 Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Tue, 28 Nov 2023 21:18:22 +0000
Subject: [PATCH] fix: trixie has no unstable in dist

---
 containers/debian/base.Dockerfile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/containers/debian/base.Dockerfile b/containers/debian/base.Dockerfile
index 65d3090c1..1b6547c4e 100644
--- a/containers/debian/base.Dockerfile
+++ b/containers/debian/base.Dockerfile
@@ -91,9 +91,12 @@ case ${ID} in
 esac
 # Clang version and repository
 CLANG="-16"
-if [ ${VERSION_CODENAME} = trixie ] ; then VERSION_CODENAME=unstable ; fi
 curl -s https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
-echo "deb http://apt.llvm.org/${VERSION_CODENAME} llvm-toolchain-${VERSION_CODENAME}${CLANG} main" > /etc/apt/sources.list.d/llvm.list
+if [ ${VERSION_CODENAME} = trixie ] ; then
+  echo "deb http://apt.llvm.org/unstable llvm-toolchain${CLANG} main" > /etc/apt/sources.list.d/llvm.list
+else
+  echo "deb http://apt.llvm.org/${VERSION_CODENAME} llvm-toolchain-${VERSION_CODENAME}${CLANG} main" > /etc/apt/sources.list.d/llvm.list
+fi
 # Install packages
 apt-get -yqq update
 apt-get -yqq install gcc${GCC} g++${GCC} gfortran${GCC}
-- 
GitLab