diff --git a/src/chsrc-framework.h b/src/chsrc-framework.h index 87567f0..12b0d6c 100644 --- a/src/chsrc-framework.h +++ b/src/chsrc-framework.h @@ -603,7 +603,7 @@ select_mirror_autoly (SourceInfo *sources, size_t size, const char *target_name) char *msg = CliOpt_InEnglish ? "Measuring speed in sequence" : "测速中"; xy_log_brkt (App_Name, bdpurple (CliOpt_InEnglish ? "MEASURE" : "测速"), msg); - say (""); + br(); } if (0==size || 1==size) @@ -635,7 +635,7 @@ select_mirror_autoly (SourceInfo *sources, size_t size, const char *target_name) /* 总测速记录值 */ double speed_records[size]; measure_speed_for_every_source (sources, size, speed_records); - say (""); + br(); /* DEBUG */ /* diff --git a/src/chsrc-main.c b/src/chsrc-main.c index 05b9612..22bc045 100644 --- a/src/chsrc-main.c +++ b/src/chsrc-main.c @@ -782,7 +782,7 @@ main (int argc, char const *argv[]) char *msg = CliOpt_InEnglish ? "Please provide the target name you want to set the source. " MSG_EN_USE_LIST_TARGETS : "请您提供想要设置源的目标名。" MSG_CN_USE_LIST_TARGETS; chsrc_error (msg); - return Exit_Unknown + return Exit_Unknown; } target = argv[cli_arg_Target_pos]; diff --git a/src/recipe/os/APT/Armbian.c b/src/recipe/os/APT/Armbian.c index 0b414f3..4b97a3a 100644 --- a/src/recipe/os/APT/Armbian.c +++ b/src/recipe/os/APT/Armbian.c @@ -4,23 +4,25 @@ * File Authors : Shengwei Chen <414685209@qq.com> * Contributors : Aoran Zeng * | Yangmoooo + * | * Created On : <2024-06-14> - * Last Modified : <2024-08-27> + * Last Modified : <2024-11-21> * ------------------------------------------------------------*/ /** - * @time 2024-06-20 更新 + * @update 2024-11-21 */ static SourceInfo os_armbian_sources[] = { - {&Upstream, "http://apt.armbian.com"}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian"}, - {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian"}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/armbian"}, - {&Sustech, "https://mirrors.sustech.edu.cn/armbian"}, - {&Ustc, "https://mirrors.ustc.edu.cn/armbian"}, - {&Nju, "https://mirrors.nju.edu.cn/armbian"}, - {&Ali, "https://mirrors.aliyun.com/armbian"}, + {&Upstream, "http://apt.armbian.com"}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/armbian"}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian"}, + {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian"}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/armbian"}, + {&Sustech, "https://mirrors.sustech.edu.cn/armbian"}, + {&Ustc, "https://mirrors.ustc.edu.cn/armbian"}, + {&Nju, "https://mirrors.nju.edu.cn/armbian"}, + {&Ali, "https://mirrors.aliyun.com/armbian"}, }; def_sources_n(os_armbian); @@ -39,7 +41,7 @@ os_armbian_getsrc (char *option) } /** - * 参考: https://mirrors.tuna.tsinghua.edu.cn/help/armbian + * @consult https://mirrors.tuna.tsinghua.edu.cn/help/armbian */ void os_armbian_setsrc (char *option) diff --git a/src/recipe/os/APT/Debian.c b/src/recipe/os/APT/Debian.c index 75be91b..af28445 100644 --- a/src/recipe/os/APT/Debian.c +++ b/src/recipe/os/APT/Debian.c @@ -4,16 +4,18 @@ * File Authors : Aoran Zeng * | Heng Guo <2085471348@qq.com> * Contributors : Yangmoooo + * | * Created On : <2023-09-02> - * Last Modified : <2024-10-31> + * Last Modified : <2024-11-21> * ------------------------------------------------------------*/ /** - * @update 2024-06-12 + * @update 2024-11-21 */ static SourceInfo os_debian_sources[] = { {&Upstream, "http://deb.debian.org/debian"}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/debian/"}, {&Ali, "https://mirrors.aliyun.com/debian"}, {&Volcengine, "https://mirrors.volces.com/debian"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/debian"}, diff --git a/src/recipe/os/APT/Kali-Linux.c b/src/recipe/os/APT/Kali-Linux.c index 4f87f37..cd8593c 100644 --- a/src/recipe/os/APT/Kali-Linux.c +++ b/src/recipe/os/APT/Kali-Linux.c @@ -4,17 +4,18 @@ * File Authors : Heng Guo <2085471348@qq.com> * Contributors : Yangmoooo * Created On : <2023-09-29> - * Last Modified : <2024-08-16> + * Last Modified : <2024-11-21> * * Kali Linux 基于 Debian Testing branch * ------------------------------------------------------------*/ /** - * @update 2024-06-12 + * @update 2024-11-21 */ static SourceInfo os_kali_sources[] = { {&Upstream, "http://http.kali.org/kali"}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/kali"}, {&Ali, "https://mirrors.aliyun.com/kali"}, {&Volcengine, "https://mirrors.volces.com/kali"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/kali"}, diff --git a/src/recipe/os/APT/Linux-Lite.c b/src/recipe/os/APT/Linux-Lite.c index dec86a0..ccafd2d 100644 --- a/src/recipe/os/APT/Linux-Lite.c +++ b/src/recipe/os/APT/Linux-Lite.c @@ -3,17 +3,20 @@ * ------------------------------------------------------------- * File Authors : Aoran Zeng * Contributors : Yangmoooo + * | * Created On : <2023-09-29> - * Last Modified : <2024-08-16> + * Last Modified : <2024-11-21> * ------------------------------------------------------------*/ /** - * @time 2023-09-29 更新 + * @update 2024-11-21 */ static SourceInfo os_linuxlite_sources[] = { {&Upstream, "http://repo.linuxliteos.com/linuxlite/"}, - {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/"} + {&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/"}, + {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/"}, + {&Nju, "https://mirror.nju.edu.cn/linuxliteos/"} }; def_sources_n(os_linuxlite); diff --git a/src/recipe/os/APT/Linux-Mint.c b/src/recipe/os/APT/Linux-Mint.c index dfed765..5f65c9d 100644 --- a/src/recipe/os/APT/Linux-Mint.c +++ b/src/recipe/os/APT/Linux-Mint.c @@ -4,11 +4,11 @@ * File Authors : Aoran Zeng * Contributors : Nil Null * Created On : <2023-09-29> - * Last Modified : <2024-08-16> + * Last Modified : <2024-11-21> * ------------------------------------------------------------*/ /** - * @time 2023-09-29 更新 + * @update 2024-11-21 更新 * @note 实际上镜像站里的内容和Ubuntu的不太一样 */ static SourceInfo @@ -16,6 +16,16 @@ os_linuxmint_sources[] = { {&Upstream, NULL}, {&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/"}, {&Ali, "http://mirrors.aliyun.com/linuxmint-packages/"}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/"}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/"}, + {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/"}, + {&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/"}, + {&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/"}, + {&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/"}, + {&Zju, "https://mirrors.zju.edu.cn/linuxmint/"}, + {&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/"}, + {&Iscas, "https://mirror.iscas.ac.cn/linuxmint/"}, + {&Scau, "https://mirrors.scau.edu.cn/linuxmint/"}, {&Netease, "https://mirrors.163.com/linuxmint/packages/"}, }; def_sources_n(os_linuxmint); diff --git a/src/recipe/os/APT/Trisquel.c b/src/recipe/os/APT/Trisquel.c index db203a7..ab979e7 100644 --- a/src/recipe/os/APT/Trisquel.c +++ b/src/recipe/os/APT/Trisquel.c @@ -4,21 +4,22 @@ * File Authors : Aoran Zeng * Contributors : Nil Null * Created On : <2023-09-29> - * Last Modified : <2024-08-16> + * Last Modified : <2024-11-21> * * Trisquel基于Ubuntu开发,不含任何专有软件及专有固件,内核使用 Linux-libre * ------------------------------------------------------------*/ /** - * @time 2023-09-29 更新 + * @time 2024-11-21 更新 */ static SourceInfo os_trisquel_sources[] = { {&Upstream, NULL}, - {&Ali, "https://mirrors.aliyun.com/trisquel/"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/"}, + {&Ali, "https://mirrors.aliyun.com/trisquel/"}, {&Nju, "https://mirror.nju.edu.cn/trisquel/"}, - {&Ustc, "https://mirrors.ustc.edu.cn/trisquel/"} + {&Ustc, "https://mirrors.ustc.edu.cn/trisquel/"}, + {&Iscas, "https://mirror.iscas.ac.cn/trisquel/"} }; def_sources_n(os_trisquel); diff --git a/src/recipe/os/APT/Ubuntu.c b/src/recipe/os/APT/Ubuntu.c index 554af5a..1fe1658 100644 --- a/src/recipe/os/APT/Ubuntu.c +++ b/src/recipe/os/APT/Ubuntu.c @@ -6,15 +6,16 @@ * Contributors : Zhao <1792582687@qq.com> * | * Created On : <2023-08-30> - * Last Modified : <2024-11-08> + * Last Modified : <2024-11-21> * ------------------------------------------------------------*/ /** - * @update 2024-11-05 + * @update 2024-11-21 */ static SourceInfo os_ubuntu_sources[] = { {&Upstream, "http://archive.ubuntu.com/ubuntu/"}, //不支持https + {&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu/"}, {&Ali, "https://mirrors.aliyun.com/ubuntu"}, {&Volcengine, "https://mirrors.volces.com/ubuntu"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/ubuntu"},