From 6da27a7112eb94462df0b9ac0cd7a4513165360a Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 15 Dec 2025 17:29:48 +0100 Subject: [PATCH] fix(tools): handle flat repositories in setup_deb822_repo (#9994) --- misc/tools.func | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index cc2a5bee7c..0eac54eac4 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -1249,7 +1249,10 @@ setup_deb822_repo() { echo "Types: deb" echo "URIs: $repo_url" echo "Suites: $suite" - echo "Components: $component" + # Flat repositories (suite="./" or absolute path) must not have Components + if [[ "$suite" != "./" && -n "$component" ]]; then + echo "Components: $component" + fi [[ -n "$architectures" ]] && echo "Architectures: $architectures" echo "Signed-By: /etc/apt/keyrings/${name}.gpg" } >/etc/apt/sources.list.d/${name}.sources