From 55120ae165df7911b2ecc15598d3810d147d86f2 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 22 Oct 2025 16:50:53 +0200 Subject: [PATCH] Fix MongoDB repo verification path in setup script Update the repository path passed to verify_repo_available to include the MongoDB version, ensuring the correct repository is checked for availability. --- misc/tools.func | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 1562d0768..71063601a 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -2405,10 +2405,10 @@ function setup_mongodb() { esac # Verify the repository is available - if ! verify_repo_available "$MONGO_BASE_URL" "$SUITE"; then + if ! verify_repo_available "$MONGO_BASE_URL" "${SUITE}/mongodb-org/${MONGO_VERSION}"; then msg_warn "MongoDB repo not available for ${DISTRO_ID}-${SUITE}, trying bookworm fallback" SUITE="bookworm" - if ! verify_repo_available "$MONGO_BASE_URL" "$SUITE"; then + if ! verify_repo_available "$MONGO_BASE_URL" "${SUITE}/mongodb-org/${MONGO_VERSION}"; then msg_error "MongoDB repository not available for ${DISTRO_ID}-${DISTRO_CODENAME} (tried ${DISTRO_CODENAME} and bookworm)" return 1 fi