From 67afa282780cd9eb8b1624438724a66b72d74772 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 21 Feb 2026 22:51:57 +0000 Subject: [PATCH] Fix get_fallback_suite to apply distro mappings before HTTP availability check Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> --- misc/tools.func | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index d12cef3be..2e24af7f9 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -962,13 +962,9 @@ get_fallback_suite() { local distro_codename="$2" local repo_base_url="$3" - # Check if current codename works - if verify_repo_available "$repo_base_url" "$distro_codename"; then - echo "$distro_codename" - return 0 - fi - - # Comprehensive fallback mappings + # Comprehensive fallback mappings (applied first for known distros to avoid + # repos that exist via HTTP but ship packages with broken dependencies on + # newer releases, e.g. Adoptium trixie → p11-kit missing on Debian 13) case "$distro_id" in debian) case "$distro_codename" in