mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-03 23:45:59 +00: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:
+2
-2
@@ -1924,8 +1924,8 @@ setup_deb822_repo() {
|
|||||||
echo "Types: deb"
|
echo "Types: deb"
|
||||||
echo "URIs: $repo_url"
|
echo "URIs: $repo_url"
|
||||||
echo "Suites: $suite"
|
echo "Suites: $suite"
|
||||||
# Flat repositories (suite="./" or absolute path) must not have Components
|
# Flat repositories (suite ending with "/" or "./") must not have Components
|
||||||
if [[ "$suite" != "./" && -n "$component" ]]; then
|
if [[ "$suite" != *"/" && -n "$component" ]]; then
|
||||||
echo "Components: $component"
|
echo "Components: $component"
|
||||||
fi
|
fi
|
||||||
[[ -n "$architectures" ]] && echo "Architectures: $architectures"
|
[[ -n "$architectures" ]] && echo "Architectures: $architectures"
|
||||||
|
|||||||
Reference in New Issue
Block a user