Browse Source

fix: debian 11 backports is in archive and can block installation

Anonymous 7 months ago
parent
commit
a49899d060
1 changed files with 4 additions and 1 deletions
  1. 4 1
      debi.sh

+ 4 - 1
debi.sh

@@ -215,9 +215,12 @@ has_cloud_kernel() {
 # Returns 0 if available, 1 if not
 # Returns 0 if available, 1 if not
 has_backports() {
 has_backports() {
     case $suite in
     case $suite in
-        buster|bullseye|oldoldstable|bookworm|oldstable|trixie|stable|forky|testing) return
+        bookworm|oldstable|trixie|stable|forky|testing) return
     esac
     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"
     warn "No backports kernel is available for $suite"
 
 
     return 1
     return 1