From ca915da8c17a6da96f3a35625dbdd999da665e18 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Sun, 26 Apr 2026 22:12:20 +0200 Subject: [PATCH] Fix: Correct deb822 repository flat path detection (#14037) The setup_deb822_repo function was only checking for the literal './' suite value, but should reject any suite ending with '/', which indicates a flat repository that must not include Components in the DEB822 format. This fix aligns ProxmoxVE with the correct behavior already present in ProxmoxVED. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- misc/tools.func | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index ea8efaddc..8c2139c4c 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -1924,8 +1924,8 @@ setup_deb822_repo() { echo "Types: deb" echo "URIs: $repo_url" echo "Suites: $suite" - # Flat repositories (suite="./" or absolute path) must not have Components - if [[ "$suite" != "./" && -n "$component" ]]; then + # Flat repositories (suite ending with "/" or "./") must not have Components + if [[ "$suite" != *"/" && -n "$component" ]]; then echo "Components: $component" fi [[ -n "$architectures" ]] && echo "Architectures: $architectures"