浏览代码

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

Anonymous 7 月之前
父节点
当前提交
a49899d060
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      debi.sh

+ 4 - 1
debi.sh

@@ -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