mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-27 12:25:05 +02:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user