From 070c74df60d4d5608093e14d5b005e6e3b596d38 Mon Sep 17 00:00:00 2001 From: Ignasi Lopez Luna <1451887+ilopezluna@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:31:27 +0000 Subject: [PATCH 1/2] fix(release): drop the Moore Threads apt source before installing packages The MUSA base image configures dl.mthreads.com, which answers 403 to CI runners and makes apt-get update fail. No installed package comes from it. Co-Authored-By: Claude Opus 5.5 --- scripts/apt-install.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/apt-install.sh b/scripts/apt-install.sh index 679fb50f1..60931dee9 100755 --- a/scripts/apt-install.sh +++ b/scripts/apt-install.sh @@ -59,9 +59,25 @@ rebuild_and_install_mesa() { rm -rf "$build_dir" } +# The MUSA base image configures the Moore Threads apt repository, which can +# refuse CI runners. None of the packages installed here come from it, so drop +# it before apt-get update. +remove_vendor_repos() { + local vendor_host="dl.mthreads.com" + local files + files=$(grep -rlF "$vendor_host" /etc/apt/sources.list.d/ 2>/dev/null || true) + if [ -n "$files" ]; then + echo "$files" | xargs rm -f + fi + if [ -f /etc/apt/sources.list ]; then + sed -i "\|$vendor_host|d" /etc/apt/sources.list + fi +} + main() { set -eux -o pipefail + remove_vendor_repos apt-get update local packages=("ca-certificates") From dc76f05c3bf97d7520a24a4009b054633ae5a740 Mon Sep 17 00:00:00 2001 From: Ignasi Lopez Luna <1451887+ilopezluna@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:38:15 +0000 Subject: [PATCH 2/2] fix(release): delete only Moore Threads lines from apt sources Removing whole files dropped other entries in the same file and fed unquoted paths to rm. Editing lines in place with a literal pattern keeps other repositories and follows symlinked source files. Co-Authored-By: Claude Opus 5.5 --- scripts/apt-install.sh | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/scripts/apt-install.sh b/scripts/apt-install.sh index 60931dee9..bc4defb5d 100755 --- a/scripts/apt-install.sh +++ b/scripts/apt-install.sh @@ -61,17 +61,14 @@ rebuild_and_install_mesa() { # The MUSA base image configures the Moore Threads apt repository, which can # refuse CI runners. None of the packages installed here come from it, so drop -# it before apt-get update. +# its one-line entries before apt-get update. remove_vendor_repos() { - local vendor_host="dl.mthreads.com" - local files - files=$(grep -rlF "$vendor_host" /etc/apt/sources.list.d/ 2>/dev/null || true) - if [ -n "$files" ]; then - echo "$files" | xargs rm -f - fi - if [ -f /etc/apt/sources.list ]; then - sed -i "\|$vendor_host|d" /etc/apt/sources.list - fi + local f + for f in /etc/apt/sources.list /etc/apt/sources.list.d/*.list; do + if [ -f "$f" ]; then + sed -i --follow-symlinks '/dl\.mthreads\.com/d' "$f" + fi + done } main() {