Fix: Correct deb822 repository flat path detection

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>
This commit is contained in:
MickLesk
2026-04-26 20:49:26 +02:00
parent b78cdb4008
commit f96bd2d548

View File

@@ -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"