mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-16 12:13:29 +01:00
fix(tools): handle flat repositories in setup_deb822_repo (#9994)
This commit is contained in:
@ -1249,7 +1249,10 @@ setup_deb822_repo() {
|
|||||||
echo "Types: deb"
|
echo "Types: deb"
|
||||||
echo "URIs: $repo_url"
|
echo "URIs: $repo_url"
|
||||||
echo "Suites: $suite"
|
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"
|
[[ -n "$architectures" ]] && echo "Architectures: $architectures"
|
||||||
echo "Signed-By: /etc/apt/keyrings/${name}.gpg"
|
echo "Signed-By: /etc/apt/keyrings/${name}.gpg"
|
||||||
} >/etc/apt/sources.list.d/${name}.sources
|
} >/etc/apt/sources.list.d/${name}.sources
|
||||||
|
|||||||
Reference in New Issue
Block a user