mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-26 22:16:11 +00:00
Merge pull request #148 from cha0sCat/master
fix: debian 11 backports is in archive and can block installation
This commit is contained in:
@@ -215,9 +215,12 @@ has_cloud_kernel() {
|
||||
# Returns 0 if available, 1 if not
|
||||
has_backports() {
|
||||
case $suite in
|
||||
buster|bullseye|oldoldstable|bookworm|oldstable|trixie|stable|forky|testing) return
|
||||
bookworm|oldstable|trixie|stable|forky|testing) return
|
||||
esac
|
||||
|
||||
# buster|bullseye|oldoldstable DO have backports, but it's in archive.debian.org now
|
||||
# considering mirrors support varies and the code complexity we must accommodate, we just treat them as no backports available
|
||||
|
||||
warn "No backports kernel is available for $suite"
|
||||
|
||||
return 1
|
||||
@@ -591,7 +594,7 @@ apt_components=main
|
||||
[ "$apt_non_free_firmware" = true ] && apt_components="$apt_components non-free-firmware"
|
||||
|
||||
apt_services=updates
|
||||
[ "$apt_backports" = true ] && apt_services="$apt_services, backports"
|
||||
[ "$apt_backports" = true ] && has_backports && apt_services="$apt_services, backports"
|
||||
|
||||
installer_directory="/boot/debian-$suite"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user