Skip to content

Commit 00f6dea

Browse files
committed
Update Debian recipe
1 parent c7015c6 commit 00f6dea

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

src/recipe/os/APT/Debian.c

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* |
99
* Created On : <2023-09-02>
1010
* Major Revision : 3
11-
* Last Modified : <2025-07-11>
11+
* Last Modified : <2025-07-21>
1212
* ------------------------------------------------------------*/
1313

1414
#define OS_Debian_Speed_URL_Postfix "/dists/bookworm/main/Contents-all.gz"
@@ -28,13 +28,26 @@ static Source_t os_debian_sources[] =
2828
{&os_debian_upstream, "http://deb.debian.org/debian", DelegateToUpstream},
2929

3030
/* MirrorZ 的速度这么测也是可以的 */
31-
{&MirrorZ, "https://mirrors.cernet.edu.cn/debian/", FeedBySourcesPrepare },
32-
{&Ali, "https://mirrors.aliyun.com/debian", FeedBySourcesPrepare},
33-
{&Volcengine, "https://mirrors.volces.com/debian", FeedBySourcesPrepare},
34-
{&Bfsu, "https://mirrors.bfsu.edu.cn/debian", FeedBySourcesPrepare},
35-
{&Ustc, "https://mirrors.ustc.edu.cn/debian", FeedBySourcesPrepare},
36-
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/debian", FeedBySourcesPrepare},
37-
{&Tencent, "https://mirrors.tencent.com/debian", FeedBySourcesPrepare},
31+
{&MirrorZ, "https://mirrors.cernet.edu.cn/debian/",
32+
"https://mirrors.cernet.edu.cn/debian/" OS_Debian_Speed_URL_Postfix},
33+
34+
{&Ali, "https://mirrors.aliyun.com/debian",
35+
"https://mirrors.aliyun.com/debian" OS_Debian_Speed_URL_Postfix},
36+
37+
{&Volcengine, "https://mirrors.volces.com/debian",
38+
"https://mirrors.volces.com/debian" OS_Debian_Speed_URL_Postfix},
39+
40+
{&Bfsu, "https://mirrors.bfsu.edu.cn/debian",
41+
"https://mirrors.bfsu.edu.cn/debian" OS_Debian_Speed_URL_Postfix},
42+
43+
{&Ustc, "https://mirrors.ustc.edu.cn/debian",
44+
"https://mirrors.ustc.edu.cn/debian" OS_Debian_Speed_URL_Postfix},
45+
46+
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/debian",
47+
"https://mirrors.tuna.tsinghua.edu.cn/debian" OS_Debian_Speed_URL_Postfix},
48+
49+
{&Tencent, "https://mirrors.tencent.com/debian",
50+
"https://mirrors.tencent.com/debian" OS_Debian_Speed_URL_Postfix},
3851

3952
// {&Tencent_Intra, "https://mirrors.tencentyun.com/debian", FeedBySourcesPrepare},
4053

@@ -70,7 +83,7 @@ os_debian_getsrc (char *option)
7083
}
7184

7285
char *msg = ENGLISH ? "Source list file missing! However, you can still run `chsrc set debian` to add and use new sources"
73-
: "缺少源配置文件!但仍可直接通过 chsrc set debian 来添加使用新的源";
86+
: "缺少源配置文件!但仍可直接通过 chsrc set debian 来添加使用新的源";
7487
chsrc_error2 (msg);
7588
return;
7689
}

0 commit comments

Comments
 (0)