diff --git a/src/framework/struct.h b/src/framework/struct.h index 11dc4f6..8b56e0e 100644 --- a/src/framework/struct.h +++ b/src/framework/struct.h @@ -172,7 +172,7 @@ TargetRegisterInfo_t; #define use_this(t) Target_t *this = &t##_target; #define use_this_source(t) use_this(t); Source_t source = chsrc_yield_source_and_confirm (this, option); -#define def_sources_begin() SourceProvider_t upstream = UpstreamProvider; Source_t sources[] = { +#define def_sources_begin() Source_t sources[] = { #define def_sources_end() }; \ this->sources_n = xy_arylen(sources); \ char *_sources_storage = xy_malloc0 (sizeof(sources)); \ diff --git a/src/recipe/lang/Clojure.c b/src/recipe/lang/Clojure.c index 3711162..c3b0db7 100644 --- a/src/recipe/lang/Clojure.c +++ b/src/recipe/lang/Clojure.c @@ -24,7 +24,7 @@ pl_clojure_prelude () chef_allow_user_define(this); def_sources_begin() - {&upstream, NULL, DelegateToUpstream}, + {&UpstreamProvider, NULL, DelegateToUpstream}, {&MirrorZ, "https://mirrors.cernet.edu.cn/clojars/", DelegateToMirror}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/clojars/", DelegateToMirror}, {&Nju, "https://mirror.nju.edu.cn/clojars/", DelegateToMirror}, diff --git a/src/recipe/lang/Dart/Flutter.c b/src/recipe/lang/Dart/Flutter.c index d2e6481..69189d8 100644 --- a/src/recipe/lang/Dart/Flutter.c +++ b/src/recipe/lang/Dart/Flutter.c @@ -26,11 +26,11 @@ pl_dart_flutter_prelude (void) chef_allow_user_define(this); def_sources_begin() - {&upstream, "https://storage.googleapis.com", FeedByPrelude}, - {&FlutterCN, "https://storage.flutter-io.cn", FeedByPrelude}, - {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn", FeedByPrelude }, /* 官方文档也没有给后缀,怀疑是否存在问题 */ - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/flutter", FeedByPrelude}, - {&Nju, "https://mirror.nju.edu.cn/flutter", FeedByPrelude} + {&UpstreamProvider, "https://storage.googleapis.com", FeedByPrelude}, + {&FlutterCN, "https://storage.flutter-io.cn", FeedByPrelude}, + {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn", FeedByPrelude }, /* 官方文档也没有给后缀,怀疑是否存在问题 */ + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/flutter", FeedByPrelude}, + {&Nju, "https://mirror.nju.edu.cn/flutter", FeedByPrelude} def_sources_end() chsrc_set_sources_speed_measure_url_with_postfix (this, "/flutter_infra_release/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz"); diff --git a/src/recipe/lang/Dart/Pub.c b/src/recipe/lang/Dart/Pub.c index bfd1f1f..b61c3bd 100644 --- a/src/recipe/lang/Dart/Pub.c +++ b/src/recipe/lang/Dart/Pub.c @@ -26,11 +26,11 @@ pl_dart_prelude (void) chef_allow_user_define(this); def_sources_begin() - {&upstream, "https://pub.dev", FeedByPrelude}, - {&FlutterCN, "https://pub.flutter-io.cn", FeedByPrelude}, - {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub", FeedByPrelude}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub", FeedByPrelude}, - {&Nju, "https://mirror.nju.edu.cn/dart-pub", FeedByPrelude} + {&UpstreamProvider, "https://pub.dev", FeedByPrelude}, + {&FlutterCN, "https://pub.flutter-io.cn", FeedByPrelude}, + {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub", FeedByPrelude}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub", FeedByPrelude}, + {&Nju, "https://mirror.nju.edu.cn/dart-pub", FeedByPrelude} def_sources_end() chsrc_set_sources_speed_measure_url_with_postfix (this, "/packages/flutter_vision/versions/1.1.4.tar.gz"); diff --git a/src/recipe/lang/Go.c b/src/recipe/lang/Go.c index 7f6af9a..7fb01e0 100644 --- a/src/recipe/lang/Go.c +++ b/src/recipe/lang/Go.c @@ -41,14 +41,14 @@ pl_go_prelude () def_sources_begin() - {&upstream, "https://proxy.golang.org", DelegateToUpstream}, - {&GoProxyCN, "https://goproxy.cn", DelegateToMirror}, - {&Ali, "https://mirrors.aliyun.com/goproxy/", DelegateToMirror}, + {&UpstreamProvider, "https://proxy.golang.org", DelegateToUpstream}, + {&GoProxyCN, "https://goproxy.cn", DelegateToMirror}, + {&Ali, "https://mirrors.aliyun.com/goproxy/", DelegateToMirror}, // 暂时停用华为镜像源, 详见 https://github.com/RubyMetric/chsrc/issues/227 - // {&Huawei, "https://mirrors.huaweicloud.com/goproxy/", DelegateToMirror}, + // {&Huawei, "https://mirrors.huaweicloud.com/goproxy/", DelegateToMirror}, - {&GoProxyIO, "https://goproxy.io", DelegateToMirror} + {&GoProxyIO, "https://goproxy.io", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/lang/Haskell.c b/src/recipe/lang/Haskell.c index 536be9b..60d7983 100644 --- a/src/recipe/lang/Haskell.c +++ b/src/recipe/lang/Haskell.c @@ -24,7 +24,7 @@ pl_haskell_prelude () chef_allow_user_define(this); def_sources_begin() - {&upstream, NULL, DelegateToUpstream}, + {&UpstreamProvider, NULL, DelegateToUpstream}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage", DelegateToMirror}, {&Bfsu, "https://mirrors.bfsu.edu.cn/hackage", DelegateToMirror}, {&Nju, "https://mirror.nju.edu.cn/hackage", DelegateToMirror}, diff --git a/src/recipe/lang/Java.c b/src/recipe/lang/Java.c index d26b040..4dd2d9c 100644 --- a/src/recipe/lang/Java.c +++ b/src/recipe/lang/Java.c @@ -25,7 +25,7 @@ pl_java_prelude () chef_allow_user_define(this); def_sources_begin() - {&upstream, "https://repo1.maven.org/maven2/", DelegateToUpstream}, + {&UpstreamProvider, "https://repo1.maven.org/maven2/", DelegateToUpstream}, {&Ali, "https://maven.aliyun.com/repository/public/", DelegateToMirror}, {&Huawei, "https://mirrors.huaweicloud.com/repository/maven/", DelegateToMirror}, diff --git a/src/recipe/lang/JavaScript/common.h b/src/recipe/lang/JavaScript/common.h index a024677..58c5945 100644 --- a/src/recipe/lang/JavaScript/common.h +++ b/src/recipe/lang/JavaScript/common.h @@ -33,10 +33,10 @@ pl_js_group_prelude (void) chef_allow_user_define(this); def_sources_begin() - {&upstream, "https://registry.npmjs.org/", FeedByPrelude}, /* @note 根据 pnpm 官网,有最后的斜线 */ - {&NpmMirror, "https://registry.npmmirror.com", FeedByPrelude}, - {&Huawei, "https://mirrors.huaweicloud.com/repository/npm/", FeedByPrelude}, - {&Tencent, "https://mirrors.cloud.tencent.com/npm/", FeedByPrelude} + {&UpstreamProvider, "https://registry.npmjs.org/", FeedByPrelude}, /* @note 根据 pnpm 官网,有最后的斜线 */ + {&NpmMirror, "https://registry.npmmirror.com", FeedByPrelude}, + {&Huawei, "https://mirrors.huaweicloud.com/repository/npm/", FeedByPrelude}, + {&Tencent, "https://mirrors.cloud.tencent.com/npm/", FeedByPrelude} def_sources_end() // 29MB 大小 @@ -67,7 +67,7 @@ pl_js_nodejs_binary_prelude (void) chef_allow_user_define(this); def_sources_begin() - {&upstream, "https://nodejs.org/dist/", FeedByPrelude}, + {&UpstreamProvider, "https://nodejs.org/dist/", FeedByPrelude}, {&NpmMirror, "https://npmmirror.com/mirrors", FeedByPrelude}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/",FeedByPrelude}, {&Bfsu, "https://mirrors.bfsu.edu.cn/nodejs-release/",FeedByPrelude}, diff --git a/src/recipe/lang/Julia.c b/src/recipe/lang/Julia.c index a5edb71..c4e191d 100644 --- a/src/recipe/lang/Julia.c +++ b/src/recipe/lang/Julia.c @@ -24,7 +24,7 @@ pl_julia_prelude () chef_allow_user_define(this); def_sources_begin() - {&upstream, NULL, DelegateToUpstream}, + {&UpstreamProvider, NULL, DelegateToUpstream}, {&Pku, "https://mirrors.pku.edu.cn/julia", DelegateToMirror}, {&Nju, "https://mirror.nju.edu.cn/julia", DelegateToMirror}, {&Iscas, "https://mirror.iscas.ac.cn/julia", DelegateToMirror} diff --git a/src/recipe/lang/Lua.c b/src/recipe/lang/Lua.c index 783dfe5..fcdbd7b 100644 --- a/src/recipe/lang/Lua.c +++ b/src/recipe/lang/Lua.c @@ -31,7 +31,7 @@ pl_lua_prelude () chef_allow_user_define(this); def_sources_begin() - {&upstream, NULL, DelegateToUpstream}, + {&UpstreamProvider, NULL, DelegateToUpstream}, {&Api7, "https://luarocks.cn", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/lang/NuGet.c b/src/recipe/lang/NuGet.c index a826147..ec54878 100644 --- a/src/recipe/lang/NuGet.c +++ b/src/recipe/lang/NuGet.c @@ -24,7 +24,7 @@ pl_nuget_prelude () chef_forbid_user_define(this); def_sources_begin() - {&upstream, "https://www.nuget.org/api/v3/", DelegateToUpstream}, + {&UpstreamProvider, "https://www.nuget.org/api/v3/", DelegateToUpstream}, {&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/lang/OCaml.c b/src/recipe/lang/OCaml.c index 21a4eff..0b419d7 100644 --- a/src/recipe/lang/OCaml.c +++ b/src/recipe/lang/OCaml.c @@ -24,8 +24,8 @@ pl_ocaml_prelude () chef_allow_user_define(this); def_sources_begin() - {&upstream, NULL, DelegateToUpstream}, - {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git", DelegateToMirror} + {&UpstreamProvider, NULL, DelegateToUpstream}, + {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/lang/PHP.c b/src/recipe/lang/PHP.c index 5072fa5..af33dd7 100644 --- a/src/recipe/lang/PHP.c +++ b/src/recipe/lang/PHP.c @@ -24,7 +24,7 @@ pl_php_prelude () chef_allow_user_define(this); def_sources_begin() - {&upstream, NULL, DelegateToUpstream}, + {&UpstreamProvider, NULL, DelegateToUpstream}, {&Ali, "https://mirrors.aliyun.com/composer/", DelegateToMirror}, {&Tencent, "https://mirrors.tencent.com/composer/", DelegateToMirror}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/composer/", DelegateToMirror}, diff --git a/src/recipe/lang/Perl.c b/src/recipe/lang/Perl.c index 8215e88..e0bc629 100644 --- a/src/recipe/lang/Perl.c +++ b/src/recipe/lang/Perl.c @@ -24,7 +24,7 @@ pl_perl_prelude () chef_allow_user_define(this); def_sources_begin() - {&upstream, NULL, DelegateToUpstream}, + {&UpstreamProvider, NULL, DelegateToUpstream}, {&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/", DelegateToMirror}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CPAN/", DelegateToMirror}, {&Bjtu, "https://mirror.bjtu.edu.cn/cpan/", DelegateToMirror}, diff --git a/src/recipe/lang/Python/common.h b/src/recipe/lang/Python/common.h index b2c7604..1d61afe 100644 --- a/src/recipe/lang/Python/common.h +++ b/src/recipe/lang/Python/common.h @@ -42,7 +42,7 @@ pl_python_group_prelude (void) def_sources_begin() - {&upstream, "https://pypi.org/simple", FeedByPrelude}, + {&UpstreamProvider, "https://pypi.org/simple", FeedByPrelude}, {&MirrorZ, "https://mirrors.cernet.edu.cn/pypi/web/simple",FeedByPrelude}, {&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple", FeedByPrelude}, /* 不要添加Zju,浙大的PyPI服务在校外访问会自动转向Tuna */ diff --git a/src/recipe/lang/R.c b/src/recipe/lang/R.c index 1bb62f0..0be2c4a 100644 --- a/src/recipe/lang/R.c +++ b/src/recipe/lang/R.c @@ -25,7 +25,7 @@ pl_r_prelude () // 以下注释的,是不含有bioconductor的镜像站,我们在换cran的同时,也直接帮助用户换bioconductor def_sources_begin() - {&upstream, NULL, DelegateToUpstream}, + {&UpstreamProvider, NULL, DelegateToUpstream}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/", DelegateToMirror}, // {&Ali, "https://mirrors.aliyun.com/CRAN/", DelegateToMirror}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CRAN/", DelegateToMirror}, diff --git a/src/recipe/lang/Ruby/Ruby.c b/src/recipe/lang/Ruby/Ruby.c index 1df683f..4b0d1c5 100644 --- a/src/recipe/lang/Ruby/Ruby.c +++ b/src/recipe/lang/Ruby/Ruby.c @@ -31,9 +31,9 @@ pl_ruby_prelude (void) chef_allow_user_define(this); def_sources_begin() - {&upstream, "https://rubygems.org", "https://rubygems.org/gems/nokogiri-1.15.0-java.gem"}, - {&RubyChina, "https://gems.ruby-china.com/", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn/rubygems/", DelegateToMirror} + {&UpstreamProvider, "https://rubygems.org", "https://rubygems.org/gems/nokogiri-1.15.0-java.gem"}, + {&RubyChina, "https://gems.ruby-china.com/", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn/rubygems/", DelegateToMirror} // {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rubygems/", DelegateToMirror}, // {&Bfsu, "https://mirrors.bfsu.edu.cn/rubygems/", DelegateToMirror}, diff --git a/src/recipe/lang/Rust/Cargo.c b/src/recipe/lang/Rust/Cargo.c index 1080028..043a5dd 100644 --- a/src/recipe/lang/Rust/Cargo.c +++ b/src/recipe/lang/Rust/Cargo.c @@ -28,13 +28,10 @@ pl_rust_cargo_prelude (void) // 以下都支持稀疏索引,我们换源时都将默认添加 `sparse+`。链接末尾的 `/` 不能缺少 def_sources_begin() - {&upstream, "https://crates.io/", "https://crates.io/api/v1/crates/windows/0.58.0/download"}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/", DelegateToMirror}, - {&RsProxyCN, "https://rsproxy.cn/index/", DelegateToMirror}, - - {&Ali, "https://mirrors.aliyun.com/crates.io-index/", - "https://mirrors.aliyun.com/crates/api/v1/crates/windows/0.58.0/download"}, - + {&UpstreamProvider, "https://crates.io/", "https://crates.io/api/v1/crates/windows/0.58.0/download"}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/", DelegateToMirror}, + {&RsProxyCN, "https://rsproxy.cn/index/", DelegateToMirror}, + {&Ali, "https://mirrors.aliyun.com/crates.io-index/", FeedByPrelude}, {&Zju, "https://mirrors.zju.edu.cn/crates.io-index/", DelegateToMirror}, /* 注释原因: (2025-06-17) 镜像同步失败,多数包都不可用 */ diff --git a/src/recipe/lang/Rust/rustup.c b/src/recipe/lang/Rust/rustup.c index 67ccb10..854aa1f 100644 --- a/src/recipe/lang/Rust/rustup.c +++ b/src/recipe/lang/Rust/rustup.c @@ -29,16 +29,16 @@ pl_rust_rustup_prelude (void) chef_allow_user_define(this); def_sources_begin() - {&upstream, "https://static.rust-lang.org", FeedByPrelude}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/rustup", FeedByPrelude}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup", FeedByPrelude}, - {&Ustc, "https://mirrors.ustc.edu.cn/rust-static", FeedByPrelude}, - {&Nju, "https://mirror.nju.edu.cn/rustup", FeedByPrelude}, - {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static", FeedByPrelude}, - {&Zju, "https://mirrors.zju.edu.cn/rustup", FeedByPrelude}, - {&Iscas, "https://mirror.iscas.ac.cn/rustup", FeedByPrelude}, - {&Ali, "https://mirrors.aliyun.com/rustup", FeedByPrelude}, - {&RsProxyCN, "https://rsproxy.cn", FeedByPrelude} + {&UpstreamProvider, "https://static.rust-lang.org", FeedByPrelude}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/rustup", FeedByPrelude}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup", FeedByPrelude}, + {&Ustc, "https://mirrors.ustc.edu.cn/rust-static", FeedByPrelude}, + {&Nju, "https://mirror.nju.edu.cn/rustup", FeedByPrelude}, + {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static", FeedByPrelude}, + {&Zju, "https://mirrors.zju.edu.cn/rustup", FeedByPrelude}, + {&Iscas, "https://mirror.iscas.ac.cn/rustup", FeedByPrelude}, + {&Ali, "https://mirrors.aliyun.com/rustup", FeedByPrelude}, + {&RsProxyCN, "https://rsproxy.cn", FeedByPrelude} def_sources_end() // 20MB大小 diff --git a/src/recipe/os/APT/Armbian.c b/src/recipe/os/APT/Armbian.c index 77f7d2a..84220d1 100644 --- a/src/recipe/os/APT/Armbian.c +++ b/src/recipe/os/APT/Armbian.c @@ -28,15 +28,15 @@ os_armbian_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "http://apt.armbian.com", DelegateToUpstream}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/armbian", DelegateToMirror}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian", DelegateToMirror}, - {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/armbian", DelegateToMirror}, - {&Sustech, "https://mirrors.sustech.edu.cn/armbian", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn/armbian", DelegateToMirror}, - {&Nju, "https://mirrors.nju.edu.cn/armbian", DelegateToMirror}, - {&Ali, "https://mirrors.aliyun.com/armbian", DelegateToMirror} + {&UpstreamProvider, "http://apt.armbian.com", DelegateToUpstream}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/armbian", DelegateToMirror}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian", DelegateToMirror}, + {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/armbian", DelegateToMirror}, + {&Sustech, "https://mirrors.sustech.edu.cn/armbian", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn/armbian", DelegateToMirror}, + {&Nju, "https://mirrors.nju.edu.cn/armbian", DelegateToMirror}, + {&Ali, "https://mirrors.aliyun.com/armbian", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/os/APT/Debian.c b/src/recipe/os/APT/Debian.c index c742457..28032bc 100644 --- a/src/recipe/os/APT/Debian.c +++ b/src/recipe/os/APT/Debian.c @@ -29,14 +29,14 @@ os_debian_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "http://deb.debian.org/debian", FeedByPrelude}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/debian/", FeedByPrelude}, - {&Ali, "https://mirrors.aliyun.com/debian", FeedByPrelude}, - {&Volcengine, "https://mirrors.volces.com/debian", FeedByPrelude}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/debian", FeedByPrelude}, - {&Ustc, "https://mirrors.ustc.edu.cn/debian", FeedByPrelude}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/debian", FeedByPrelude}, - {&Tencent, "https://mirrors.tencent.com/debian", FeedByPrelude} + {&UpstreamProvider, "http://deb.debian.org/debian", FeedByPrelude}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/debian/", FeedByPrelude}, + {&Ali, "https://mirrors.aliyun.com/debian", FeedByPrelude}, + {&Volcengine, "https://mirrors.volces.com/debian", FeedByPrelude}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/debian", FeedByPrelude}, + {&Ustc, "https://mirrors.ustc.edu.cn/debian", FeedByPrelude}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/debian", FeedByPrelude}, + {&Tencent, "https://mirrors.tencent.com/debian", FeedByPrelude} // {&Tencent_Intra, "https://mirrors.tencentyun.com/debian", FeedByPrelude}, diff --git a/src/recipe/os/APT/Kali-Linux.c b/src/recipe/os/APT/Kali-Linux.c index 96be261..2f2b6c0 100644 --- a/src/recipe/os/APT/Kali-Linux.c +++ b/src/recipe/os/APT/Kali-Linux.c @@ -28,13 +28,13 @@ os_kali_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "http://http.kali.org/kali", DelegateToUpstream}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/kali", DelegateToMirror}, - {&Ali, "https://mirrors.aliyun.com/kali", DelegateToMirror}, - {&Volcengine, "https://mirrors.volces.com/kali", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/kali", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn/kali", DelegateToMirror}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/kali", DelegateToMirror} + {&UpstreamProvider, "http://http.kali.org/kali", DelegateToUpstream}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/kali", DelegateToMirror}, + {&Ali, "https://mirrors.aliyun.com/kali", DelegateToMirror}, + {&Volcengine, "https://mirrors.volces.com/kali", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/kali", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn/kali", DelegateToMirror}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/kali", DelegateToMirror} /* 不启用原因: 未与上游同步 */ // {&Huawei, "https://mirrors.huaweicloud.com/kali", DelegateToMirror}, def_sources_end() diff --git a/src/recipe/os/APT/Linux-Lite.c b/src/recipe/os/APT/Linux-Lite.c index 61be3c4..b3c7578 100644 --- a/src/recipe/os/APT/Linux-Lite.c +++ b/src/recipe/os/APT/Linux-Lite.c @@ -27,10 +27,10 @@ os_linuxlite_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "http://repo.linuxliteos.com/linuxlite/", DelegateToUpstream}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/", DelegateToMirror}, - {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/", DelegateToMirror}, - {&Nju, "https://mirror.nju.edu.cn/linuxliteos/", DelegateToMirror} + {&UpstreamProvider, "http://repo.linuxliteos.com/linuxlite/", DelegateToUpstream}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/", DelegateToMirror}, + {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/", DelegateToMirror}, + {&Nju, "https://mirror.nju.edu.cn/linuxliteos/", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/os/APT/Linux-Mint.c b/src/recipe/os/APT/Linux-Mint.c index 56dd429..02dba06 100644 --- a/src/recipe/os/APT/Linux-Mint.c +++ b/src/recipe/os/APT/Linux-Mint.c @@ -27,19 +27,19 @@ os_linuxmint_prelude () /* @note 实际上镜像站里的内容和Ubuntu的不太一样 */ def_sources_begin() - {&upstream, "http://packages.linuxmint.com", DelegateToUpstream}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/", DelegateToMirror}, - {&Ali, "http://mirrors.aliyun.com/linuxmint-packages/", DelegateToMirror}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/", DelegateToMirror}, - {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/", DelegateToMirror}, - {&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/", DelegateToMirror}, - {&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/", DelegateToMirror}, - {&Zju, "https://mirrors.zju.edu.cn/linuxmint/", DelegateToMirror}, - {&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/", DelegateToMirror}, - {&Iscas, "https://mirror.iscas.ac.cn/linuxmint/", DelegateToMirror}, - {&Scau, "https://mirrors.scau.edu.cn/linuxmint/", DelegateToMirror} + {&UpstreamProvider, "http://packages.linuxmint.com", DelegateToUpstream}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/", DelegateToMirror}, + {&Ali, "http://mirrors.aliyun.com/linuxmint-packages/", DelegateToMirror}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/", DelegateToMirror}, + {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/", DelegateToMirror}, + {&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/", DelegateToMirror}, + {&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/", DelegateToMirror}, + {&Zju, "https://mirrors.zju.edu.cn/linuxmint/", DelegateToMirror}, + {&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/", DelegateToMirror}, + {&Iscas, "https://mirror.iscas.ac.cn/linuxmint/", DelegateToMirror}, + {&Scau, "https://mirrors.scau.edu.cn/linuxmint/", DelegateToMirror} /* 不启用原因:过慢 */ // {&Netease, "https://mirrors.163.com/linuxmint/packages/", DelegateToMirror} def_sources_end() diff --git a/src/recipe/os/APT/ROS.c b/src/recipe/os/APT/ROS.c index 207823a..62302a5 100644 --- a/src/recipe/os/APT/ROS.c +++ b/src/recipe/os/APT/ROS.c @@ -28,18 +28,18 @@ os_ros_prelude () chef_set_note(this, "该换源方案中,URL存在拼凑,因此不能手动使用某URL来换源", "In this switching method, URLs are constructed, so manual URL specification is not supported"); def_sources_begin() - {&upstream, "http://packages.ros.org", DelegateToUpstream}, - {&Ali, "https://mirrors.aliyun.com", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn", DelegateToMirror}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn", DelegateToMirror}, - {&Tencent, "https://mirrors.tencent.com", DelegateToMirror}, + {&UpstreamProvider, "http://packages.ros.org", DelegateToUpstream}, + {&Ali, "https://mirrors.aliyun.com", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn", DelegateToMirror}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn", DelegateToMirror}, + {&Tencent, "https://mirrors.tencent.com", DelegateToMirror}, // {&Tencent_Intra, "https://mirrors.tencentyun.com", DelegateToMirror}, - {&Huawei, "https://mirrors.huaweicloud.com", DelegateToMirror} + {&Huawei, "https://mirrors.huaweicloud.com", DelegateToMirror} /* 不启用原因:过慢 */ - // {&Netease, "https://mirrors.163.com", DelegateToMirror}, + // {&Netease, "https://mirrors.163.com", DelegateToMirror}, /* 不启用原因:过慢 */ - // {&Sohu, "https://mirrors.sohu.com", DelegateToMirror} + // {&Sohu, "https://mirrors.sohu.com", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/os/APT/Raspberry-Pi-OS.c b/src/recipe/os/APT/Raspberry-Pi-OS.c index 6239b5b..6406925 100644 --- a/src/recipe/os/APT/Raspberry-Pi-OS.c +++ b/src/recipe/os/APT/Raspberry-Pi-OS.c @@ -30,13 +30,13 @@ os_raspberrypi_prelude () def_sources_begin() // https://archive.raspberrypi.org/ until Debian "bullseye" release - {&upstream, "https://archive.raspberrypi.com/", DelegateToUpstream}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/raspberrypi/", DelegateToMirror}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/raspberrypi/", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn/raspberrypi/", DelegateToMirror}, - {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/", DelegateToMirror}, - {&Sustech, "https://mirrors.sustech.edu.cn/raspberrypi/", DelegateToMirror} + {&UpstreamProvider, "https://archive.raspberrypi.com/", DelegateToUpstream}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/raspberrypi/", DelegateToMirror}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/raspberrypi/", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn/raspberrypi/", DelegateToMirror}, + {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/", DelegateToMirror}, + {&Sustech, "https://mirrors.sustech.edu.cn/raspberrypi/", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/os/APT/Termux.c b/src/recipe/os/APT/Termux.c index 1df67d8..1ff60c5 100644 --- a/src/recipe/os/APT/Termux.c +++ b/src/recipe/os/APT/Termux.c @@ -26,19 +26,19 @@ os_termux_prelude () chef_set_note(this, "该 recipe 存在对应的 bootstrapper", "This recipe has a corresponding bootstrapper"); def_sources_begin() - {&upstream, "https://packages.termux.org/apt/termux-main/", DelegateToUpstream}, - {&Ustc, "https://mirrors.ustc.edu.cn/termux/", DelegateToMirror}, - {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/termux/", DelegateToMirror}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/termux/", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/termux/", DelegateToMirror}, - {&Pku, "https://mirrors.pku.edu.cn/termux/", DelegateToMirror}, - {&Nyist, "https://mirror.nyist.edu.cn/termux/", DelegateToMirror}, - {&Nju, "https://mirror.nju.edu.cn/termux/", DelegateToMirror}, - {&Sustech, "https://mirrors.sustech.edu.cn/termux/", DelegateToMirror}, - {&Iscas, "https://mirror.iscas.ac.cn/termux/", DelegateToMirror}, - {&Zju, "https://mirrors.zju.edu.cn/termux/", DelegateToMirror}, - {&Sdu, "https://mirrors.sdu.edu.cn/termux/", DelegateToMirror}, - {&Cqupt, "https://mirrors.cqupt.edu.cn/termux/", DelegateToMirror} + {&UpstreamProvider, "https://packages.termux.org/apt/termux-main/", DelegateToUpstream}, + {&Ustc, "https://mirrors.ustc.edu.cn/termux/", DelegateToMirror}, + {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/termux/", DelegateToMirror}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/termux/", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/termux/", DelegateToMirror}, + {&Pku, "https://mirrors.pku.edu.cn/termux/", DelegateToMirror}, + {&Nyist, "https://mirror.nyist.edu.cn/termux/", DelegateToMirror}, + {&Nju, "https://mirror.nju.edu.cn/termux/", DelegateToMirror}, + {&Sustech, "https://mirrors.sustech.edu.cn/termux/", DelegateToMirror}, + {&Iscas, "https://mirror.iscas.ac.cn/termux/", DelegateToMirror}, + {&Zju, "https://mirrors.zju.edu.cn/termux/", DelegateToMirror}, + {&Sdu, "https://mirrors.sdu.edu.cn/termux/", DelegateToMirror}, + {&Cqupt, "https://mirrors.cqupt.edu.cn/termux/", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/os/APT/Trisquel.c b/src/recipe/os/APT/Trisquel.c index c58a497..2b44952 100644 --- a/src/recipe/os/APT/Trisquel.c +++ b/src/recipe/os/APT/Trisquel.c @@ -28,12 +28,12 @@ os_trisquel_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "http://archive.trisquel.info/trisquel/", DelegateToUpstream}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/", DelegateToMirror}, - {&Ali, "https://mirrors.aliyun.com/trisquel/", DelegateToMirror}, - {&Nju, "https://mirror.nju.edu.cn/trisquel/", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn/trisquel/", DelegateToMirror}, - {&Iscas, "https://mirror.iscas.ac.cn/trisquel/", DelegateToMirror} + {&UpstreamProvider, "http://archive.trisquel.info/trisquel/", DelegateToUpstream}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/", DelegateToMirror}, + {&Ali, "https://mirrors.aliyun.com/trisquel/", DelegateToMirror}, + {&Nju, "https://mirror.nju.edu.cn/trisquel/", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn/trisquel/", DelegateToMirror}, + {&Iscas, "https://mirror.iscas.ac.cn/trisquel/", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/os/APT/Ubuntu.c b/src/recipe/os/APT/Ubuntu.c index f25916d..986636a 100644 --- a/src/recipe/os/APT/Ubuntu.c +++ b/src/recipe/os/APT/Ubuntu.c @@ -30,7 +30,7 @@ os_ubuntu_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "http://archive.ubuntu.com/ubuntu/", FeedByPrelude}, /* 不支持https */ + {&UpstreamProvider, "http://archive.ubuntu.com/ubuntu/", FeedByPrelude}, /* 不支持https */ {&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu/",FeedByPrelude}, {&Ali, "https://mirrors.aliyun.com/ubuntu",FeedByPrelude}, {&Volcengine, "https://mirrors.volces.com/ubuntu",FeedByPrelude}, diff --git a/src/recipe/os/APT/deepin.c b/src/recipe/os/APT/deepin.c index ee557f3..094c76a 100644 --- a/src/recipe/os/APT/deepin.c +++ b/src/recipe/os/APT/deepin.c @@ -27,12 +27,12 @@ os_deepin_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "https://community-packages.deepin.com/deepin", DelegateToUpstream}, - {&Ali, "https://mirrors.aliyun.com/deepin", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/deepin", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn/deepin", DelegateToMirror}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/deepin", DelegateToMirror}, - {&Tencent, "https://mirrors.tencent.com/deepin", DelegateToMirror} + {&UpstreamProvider, "https://community-packages.deepin.com/deepin", DelegateToUpstream}, + {&Ali, "https://mirrors.aliyun.com/deepin", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/deepin", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn/deepin", DelegateToMirror}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/deepin", DelegateToMirror}, + {&Tencent, "https://mirrors.tencent.com/deepin", DelegateToMirror} // {&Tencent_Intra, "https://mirrors.tencentyun.com/deepin", DelegateToMirror}, /* 不启用原因:过慢 */ // {&Netease, "https://mirrors.163.com/deepin", DelegateToMirror}, diff --git a/src/recipe/os/APT/openKylin.c b/src/recipe/os/APT/openKylin.c index cbf6f5f..a6aaa50 100644 --- a/src/recipe/os/APT/openKylin.c +++ b/src/recipe/os/APT/openKylin.c @@ -30,9 +30,9 @@ os_openkylin_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "https://archive.openkylin.top/openkylin/", DelegateToUpstream}, - {&Ali, "https://mirrors.aliyun.com/openkylin/", DelegateToMirror}, - {&Netease, "https://mirrors.163.com/openkylin/", DelegateToMirror} + {&UpstreamProvider, "https://archive.openkylin.top/openkylin/", DelegateToUpstream}, + {&Ali, "https://mirrors.aliyun.com/openkylin/", DelegateToMirror}, + {&Netease, "https://mirrors.163.com/openkylin/", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/os/Alpine-Linux.c b/src/recipe/os/Alpine-Linux.c index 82a5ce2..0b9fe54 100644 --- a/src/recipe/os/Alpine-Linux.c +++ b/src/recipe/os/Alpine-Linux.c @@ -27,15 +27,15 @@ os_alpine_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "http://dl-cdn.alpinelinux.org/alpine", FeedByPrelude}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine", FeedByPrelude}, - {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/alpine", FeedByPrelude}, - {&Sustech, "https://mirrors.sustech.edu.cn/alpine", FeedByPrelude}, - {&Zju, "https://mirrors.zju.edu.cn/alpine", FeedByPrelude}, - {&Lzuoss, "https://mirror.lzu.edu.cn/alpine", FeedByPrelude}, - {&Ali, "https://mirrors.aliyun.com/alpine", FeedByPrelude}, - {&Tencent, "https://mirrors.cloud.tencent.com/alpine", FeedByPrelude}, - {&Huawei, "https://mirrors.huaweicloud.com/alpine", FeedByPrelude} + {&UpstreamProvider, "http://dl-cdn.alpinelinux.org/alpine", FeedByPrelude}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine", FeedByPrelude}, + {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/alpine", FeedByPrelude}, + {&Sustech, "https://mirrors.sustech.edu.cn/alpine", FeedByPrelude}, + {&Zju, "https://mirrors.zju.edu.cn/alpine", FeedByPrelude}, + {&Lzuoss, "https://mirror.lzu.edu.cn/alpine", FeedByPrelude}, + {&Ali, "https://mirrors.aliyun.com/alpine", FeedByPrelude}, + {&Tencent, "https://mirrors.cloud.tencent.com/alpine", FeedByPrelude}, + {&Huawei, "https://mirrors.huaweicloud.com/alpine", FeedByPrelude} def_sources_end() chsrc_set_sources_speed_measure_url_with_postfix (this, "/latest-stable/releases/x86_64/alpine-standard-3.21.0-x86_64.iso"); diff --git a/src/recipe/os/BSD/FreeBSD.c b/src/recipe/os/BSD/FreeBSD.c index d6bff92..669a77c 100644 --- a/src/recipe/os/BSD/FreeBSD.c +++ b/src/recipe/os/BSD/FreeBSD.c @@ -27,7 +27,7 @@ os_freebsd_prelude () // 2023-09-24: 以下三个USTC, NJU, Netease 均维护了 freebsd-pkg freebsd-ports // 2023-09-27: 请务必保持Nju前面有至少一个镜像,原因请查看 freebsd 的换源函数 def_sources_begin() - {&upstream, NULL, DelegateToUpstream}, + {&UpstreamProvider, NULL, DelegateToUpstream}, {&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror}, {&Nju, "mirror.nju.edu.cn", DelegateToMirror}, {&Netease, "mirrors.163.com", DelegateToMirror}, diff --git a/src/recipe/os/BSD/NetBSD.c b/src/recipe/os/BSD/NetBSD.c index 0d776a0..c318f2b 100644 --- a/src/recipe/os/BSD/NetBSD.c +++ b/src/recipe/os/BSD/NetBSD.c @@ -25,7 +25,7 @@ os_netbsd_prelude () chef_forbid_user_define(this); def_sources_begin() - {&upstream, NULL, DelegateToUpstream}, + {&UpstreamProvider, NULL, DelegateToUpstream}, {&MirrorZ, "https://mirrors.cernet.edu.cn/pkgsrc/packages/NetBSD/", DelegateToMirror}, {&Ali, "https://mirrors.aliyun.com/pkgsrc/packages/NetBSD/", DelegateToMirror}, {&Ustc, "https://mirrors.ustc.edu.cn/pkgsrc/packages/NetBSD/", DelegateToMirror}, diff --git a/src/recipe/os/BSD/OpenBSD.c b/src/recipe/os/BSD/OpenBSD.c index feb6d11..2c50c13 100644 --- a/src/recipe/os/BSD/OpenBSD.c +++ b/src/recipe/os/BSD/OpenBSD.c @@ -24,7 +24,7 @@ os_openbsd_prelude () chef_forbid_user_define(this); def_sources_begin() - {&upstream, NULL, DelegateToUpstream}, + {&UpstreamProvider, NULL, DelegateToUpstream}, {&MirrorZ, "https://mirrors.cernet.edu.cn/OpenBSD/", DelegateToMirror}, {&Bfsu, "https://mirrors.bfsu.edu.cn/OpenBSD/", DelegateToMirror}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/OpenBSD/", DelegateToMirror}, diff --git a/src/recipe/os/Gentoo-Linux.c b/src/recipe/os/Gentoo-Linux.c index 646405a..7878c01 100644 --- a/src/recipe/os/Gentoo-Linux.c +++ b/src/recipe/os/Gentoo-Linux.c @@ -27,12 +27,12 @@ os_gentoo_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "rsync://rsync.gentoo.org/gentoo-portage", DelegateToUpstream}, - {&Ali, "mirrors.aliyun.com", DelegateToMirror}, - {&Bfsu, "mirrors.bfsu.edu.cn", DelegateToMirror}, - {&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror}, - {&Tuna, "mirrors.tuna.tsinghua.edu.cn", DelegateToMirror}, - {&Tencent, "mirrors.tencent.com", DelegateToMirror} + {&UpstreamProvider, "rsync://rsync.gentoo.org/gentoo-portage", DelegateToUpstream}, + {&Ali, "mirrors.aliyun.com", DelegateToMirror}, + {&Bfsu, "mirrors.bfsu.edu.cn", DelegateToMirror}, + {&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror}, + {&Tuna, "mirrors.tuna.tsinghua.edu.cn", DelegateToMirror}, + {&Tencent, "mirrors.tencent.com", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/os/OpenWrt.c b/src/recipe/os/OpenWrt.c index 3714c24..75a42e2 100644 --- a/src/recipe/os/OpenWrt.c +++ b/src/recipe/os/OpenWrt.c @@ -28,18 +28,18 @@ os_openwrt_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "https://downloads.openwrt.org", DelegateToUpstream}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt", DelegateToMirror}, - {&Ali, "https://mirrors.aliyun.com/openwrt", DelegateToMirror}, - {&Tencent, "https://mirrors.cloud.tencent.com/openwrt", DelegateToMirror}, - {&Tuna, "https://mirror.tuna.tsinghua.edu.cn/openwrt", DelegateToMirror}, - {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/openwrt", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn/openwrt", DelegateToMirror}, - {&Pku, "https://mirrors.pku.edu.cn/openwrt", DelegateToMirror}, - {&Sustech, "https://mirrors.sustech.edu.cn/openwrt", DelegateToMirror} + {&UpstreamProvider, "https://downloads.openwrt.org", DelegateToUpstream}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt", DelegateToMirror}, + {&Ali, "https://mirrors.aliyun.com/openwrt", DelegateToMirror}, + {&Tencent, "https://mirrors.cloud.tencent.com/openwrt", DelegateToMirror}, + {&Tuna, "https://mirror.tuna.tsinghua.edu.cn/openwrt", DelegateToMirror}, + {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/openwrt", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn/openwrt", DelegateToMirror}, + {&Pku, "https://mirrors.pku.edu.cn/openwrt", DelegateToMirror}, + {&Sustech, "https://mirrors.sustech.edu.cn/openwrt", DelegateToMirror} def_sources_end() - chsrc_set_provider_speed_measure_url (&upstream, "https://downloads.openwrt.org/releases/23.05.5/targets/x86/64/openwrt-sdk-23.05.5-x86-64_gcc-12.3.0_musl.Linux-x86_64.tar.xz"); + chsrc_set_provider_speed_measure_url (&UpstreamProvider, "https://downloads.openwrt.org/releases/23.05.5/targets/x86/64/openwrt-sdk-23.05.5-x86-64_gcc-12.3.0_musl.Linux-x86_64.tar.xz"); } diff --git a/src/recipe/os/Solus.c b/src/recipe/os/Solus.c index 1391c83..55a3e86 100644 --- a/src/recipe/os/Solus.c +++ b/src/recipe/os/Solus.c @@ -27,10 +27,10 @@ os_solus_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "https://packages.getsol.us/shannon/eopkg-index.xml.xz", DelegateToUpstream}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror}, - {&Nju, "https://mirror.nju.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror} + {&UpstreamProvider, "https://packages.getsol.us/shannon/eopkg-index.xml.xz", DelegateToUpstream}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror}, + {&Nju, "https://mirror.nju.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/os/Void-Linux.c b/src/recipe/os/Void-Linux.c index ef502bc..e3cb9aa 100644 --- a/src/recipe/os/Void-Linux.c +++ b/src/recipe/os/Void-Linux.c @@ -27,10 +27,10 @@ os_voidlinux_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "https://repo-default.voidlinux.org", FeedByPrelude}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux", FeedByPrelude}, - {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/voidlinux", FeedByPrelude}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/voidlinux", FeedByPrelude} + {&UpstreamProvider, "https://repo-default.voidlinux.org", FeedByPrelude}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux", FeedByPrelude}, + {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/voidlinux", FeedByPrelude}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/voidlinux", FeedByPrelude} def_sources_end() chsrc_set_sources_speed_measure_url_with_postfix (this, "/live/20240314/void-live-x86_64-musl-20240314-xfce.iso"); diff --git a/src/recipe/os/YUM/AlmaLinux.c b/src/recipe/os/YUM/AlmaLinux.c index e0ea331..4b9c1bb 100644 --- a/src/recipe/os/YUM/AlmaLinux.c +++ b/src/recipe/os/YUM/AlmaLinux.c @@ -27,15 +27,15 @@ os_almalinux_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "http://repo.almalinux.org/almalinux", FeedByPrelude}, - {&Ali, "https://mirrors.aliyun.com/almalinux", FeedByPrelude}, - {&Volcengine, "https://mirrors.volces.com/almalinux", FeedByPrelude}, - {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/almalinux", FeedByPrelude}, - {&Zju, "https://mirrors.zju.edu.cn/almalinux", FeedByPrelude}, - {&Nju, "https://mirror.nju.edu.cn/almalinux", FeedByPrelude} + {&UpstreamProvider, "http://repo.almalinux.org/almalinux", FeedByPrelude}, + {&Ali, "https://mirrors.aliyun.com/almalinux", FeedByPrelude}, + {&Volcengine, "https://mirrors.volces.com/almalinux", FeedByPrelude}, + {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/almalinux", FeedByPrelude}, + {&Zju, "https://mirrors.zju.edu.cn/almalinux", FeedByPrelude}, + {&Nju, "https://mirror.nju.edu.cn/almalinux", FeedByPrelude} def_sources_end() - chsrc_set_provider_speed_measure_url (&upstream, "https://raw.repo.almalinux.org/almalinux/9.5/isos/x86_64/AlmaLinux-9-latest-x86_64-minimal.iso"); + chsrc_set_provider_speed_measure_url (&UpstreamProvider, "https://raw.repo.almalinux.org/almalinux/9.5/isos/x86_64/AlmaLinux-9-latest-x86_64-minimal.iso"); } /** diff --git a/src/recipe/os/YUM/Anolis-OS.c b/src/recipe/os/YUM/Anolis-OS.c index c19e7bf..706a7af 100644 --- a/src/recipe/os/YUM/Anolis-OS.c +++ b/src/recipe/os/YUM/Anolis-OS.c @@ -26,9 +26,9 @@ os_anolis_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "https://mirrors.openanolis.cn/anolis", DelegateToUpstream}, - {&Ali, "https://mirrors.aliyun.com/anolis", DelegateToMirror}, - {&Hust, "https://mirrors.hust.edu.cn/anolis", DelegateToMirror} + {&UpstreamProvider, "https://mirrors.openanolis.cn/anolis", DelegateToUpstream}, + {&Ali, "https://mirrors.aliyun.com/anolis", DelegateToMirror}, + {&Hust, "https://mirrors.hust.edu.cn/anolis", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/os/YUM/Fedora-Linux.c b/src/recipe/os/YUM/Fedora-Linux.c index d23b86a..66c12e5 100644 --- a/src/recipe/os/YUM/Fedora-Linux.c +++ b/src/recipe/os/YUM/Fedora-Linux.c @@ -29,12 +29,12 @@ os_fedora_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "http://download.example/pub/fedora/linux", DelegateToUpstream}, - {&Ali, "https://mirrors.aliyun.com/fedora", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/fedora", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn/fedora", DelegateToMirror}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/fedora", DelegateToMirror}, - {&Tencent, "https://mirrors.tencent.com/fedora", DelegateToMirror} + {&UpstreamProvider, "http://download.example/pub/fedora/linux", DelegateToUpstream}, + {&Ali, "https://mirrors.aliyun.com/fedora", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/fedora", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn/fedora", DelegateToMirror}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/fedora", DelegateToMirror}, + {&Tencent, "https://mirrors.tencent.com/fedora", DelegateToMirror} // {&Tencent_Intra, "https://mirrors.tencentyun.com/fedora", DelegateToMirror}, /* 不启用原因:过慢 */ diff --git a/src/recipe/os/YUM/Rocky-Linux.c b/src/recipe/os/YUM/Rocky-Linux.c index 36bd37c..146c449 100644 --- a/src/recipe/os/YUM/Rocky-Linux.c +++ b/src/recipe/os/YUM/Rocky-Linux.c @@ -25,7 +25,7 @@ os_rockylinux_prelude () chef_forbid_user_define(this); def_sources_begin() - {&upstream, "https://dl.rockylinux.org", DelegateToUpstream}, + {&UpstreamProvider, "https://dl.rockylinux.org", DelegateToUpstream}, {&MirrorZ, "https://mirrors.cernet.edu.cn/rocky", DelegateToMirror}, {&Ali, "https://mirrors.aliyun.com/rockylinux", DelegateToMirror}, {&Volcengine, "https://mirrors.volces.com/rockylinux", DelegateToMirror}, diff --git a/src/recipe/os/YUM/openEuler.c b/src/recipe/os/YUM/openEuler.c index 9b4be7d..a18be2e 100644 --- a/src/recipe/os/YUM/openEuler.c +++ b/src/recipe/os/YUM/openEuler.c @@ -30,12 +30,12 @@ os_openeuler_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "https://repo.openeuler.org/", FeedByPrelude}, - {&Ali, "https://mirrors.aliyun.com/openeuler/", FeedByPrelude}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/openeuler/", FeedByPrelude}, - {&Ustc, "https://mirrors.ustc.edu.cn/openeuler/", FeedByPrelude}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/openeuler/", FeedByPrelude}, - {&Tencent, "https://mirrors.tencent.com/openeuler/", FeedByPrelude} + {&UpstreamProvider, "https://repo.openeuler.org/", FeedByPrelude}, + {&Ali, "https://mirrors.aliyun.com/openeuler/", FeedByPrelude}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/openeuler/", FeedByPrelude}, + {&Ustc, "https://mirrors.ustc.edu.cn/openeuler/", FeedByPrelude}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/openeuler/", FeedByPrelude}, + {&Tencent, "https://mirrors.tencent.com/openeuler/", FeedByPrelude} // {&Tencent_Intra, "https://mirrors.tencentyun.com/openeuler/", FeedByPrelude}, /* 不启用原因:过慢 */ diff --git a/src/recipe/os/openSUSE.c b/src/recipe/os/openSUSE.c index 6d1ff8e..4811ff8 100644 --- a/src/recipe/os/openSUSE.c +++ b/src/recipe/os/openSUSE.c @@ -27,13 +27,13 @@ os_opensuse_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&upstream, "https://download.opensuse.org/", DelegateToUpstream}, - {&Ali, "https://mirrors.aliyun.com/opensuse", DelegateToMirror}, - {&Volcengine, "https://mirrors.volces.com/opensuse", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/opensuse", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn/opensuse", DelegateToMirror}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/opensuse", DelegateToMirror}, - {&Tencent, "https://mirrors.tencent.com/opensuse", DelegateToMirror} + {&UpstreamProvider, "https://download.opensuse.org/", DelegateToUpstream}, + {&Ali, "https://mirrors.aliyun.com/opensuse", DelegateToMirror}, + {&Volcengine, "https://mirrors.volces.com/opensuse", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/opensuse", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn/opensuse", DelegateToMirror}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/opensuse", DelegateToMirror}, + {&Tencent, "https://mirrors.tencent.com/opensuse", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/os/pacman/Arch-Linux.c b/src/recipe/os/pacman/Arch-Linux.c index 01c9ac9..a200b26 100644 --- a/src/recipe/os/pacman/Arch-Linux.c +++ b/src/recipe/os/pacman/Arch-Linux.c @@ -36,7 +36,7 @@ os_arch_prelude () * @note 不要给后面加 / ,因为ARM情况下,还要额外加一个 arm 后缀 */ def_sources_begin() - {&upstream, "https://repo.archlinux.org", DelegateToUpstream}, + {&UpstreamProvider, "https://repo.archlinux.org", DelegateToUpstream}, {&Ali, "https://mirrors.aliyun.com/archlinux", DelegateToMirror}, {&Bfsu, "https://mirrors.bfsu.edu.cn/archlinux", DelegateToMirror}, {&Ustc, "https://mirrors.ustc.edu.cn/archlinux", DelegateToMirror}, @@ -139,7 +139,7 @@ os_archlinuxcn_prelude () def_sources_begin() - {&upstream, "https://repo.archlinuxcn.org/", DelegateToUpstream}, + {&UpstreamProvider, "https://repo.archlinuxcn.org/", DelegateToUpstream}, {&Ali, "https://mirrors.aliyun.com/archlinuxcn/", DelegateToMirror}, {&Bfsu, "https://mirrors.bfsu.edu.cn/archlinuxcn/", DelegateToMirror}, {&Ustc, "https://mirrors.ustc.edu.cn/archlinuxcn/", DelegateToMirror}, diff --git a/src/recipe/os/pacman/MSYS2.c b/src/recipe/os/pacman/MSYS2.c index a5f8e92..b5b3406 100644 --- a/src/recipe/os/pacman/MSYS2.c +++ b/src/recipe/os/pacman/MSYS2.c @@ -25,7 +25,7 @@ os_msys2_prelude () chef_forbid_user_define(this); def_sources_begin() - {&upstream, NULL, DelegateToUpstream}, + {&UpstreamProvider, NULL, DelegateToUpstream}, {&Ali, "https://mirrors.aliyun.com/msys2", DelegateToMirror}, {&Bfsu, "https://mirrors.bfsu.edu.cn/msys2", DelegateToMirror}, {&Ustc, "https://mirrors.ustc.edu.cn/msys2", DelegateToMirror}, diff --git a/src/recipe/os/pacman/Manjaro-Linux.c b/src/recipe/os/pacman/Manjaro-Linux.c index a9afeca..75d5c70 100644 --- a/src/recipe/os/pacman/Manjaro-Linux.c +++ b/src/recipe/os/pacman/Manjaro-Linux.c @@ -23,7 +23,7 @@ os_manjaro_prelude () chef_forbid_user_define(this); def_sources_begin() - {&upstream, NULL, DelegateToUpstream} + {&UpstreamProvider, NULL, DelegateToUpstream} /* Manjaro uses GUI tool, no manual sources needed */ def_sources_end() } diff --git a/src/recipe/recipe-template.c b/src/recipe/recipe-template.c index 3e31697..59f277f 100644 --- a/src/recipe/recipe-template.c +++ b/src/recipe/recipe-template.c @@ -78,7 +78,7 @@ void chef_set_note ("备注说明...", "Note..."); def_sources_begin() - {&upstream, "上游地址,若维护者暂时未知,可填NULL,这个主要用于reset", DelegateToUpstream} + {&UpstreamProvider, "上游地址,若维护者暂时未知,可填NULL,这个主要用于reset", DelegateToUpstream} {&RubyMetric, "https://rubymetirc.com/target", DelegateToMirror}, {&RubyInstaller, "https://rubyinstaller.cn/target", DelegateToMirror}, {&Gitee, "https://gitee.com/RubyMetric/chsrc", DelegateToMirror}, diff --git a/src/recipe/ware/Anaconda/Anaconda.c b/src/recipe/ware/Anaconda/Anaconda.c index 62a0db9..6ac92a5 100644 --- a/src/recipe/ware/Anaconda/Anaconda.c +++ b/src/recipe/ware/Anaconda/Anaconda.c @@ -28,17 +28,17 @@ wr_anaconda_prelude () chef_forbid_user_define(this); def_sources_begin() - {&upstream, "https://repo.anaconda.com", DelegateToUpstream}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn", DelegateToMirror}, - {&Bjtu, "https://mirror.bjtu.edu.cn", DelegateToMirror}, - {&Nju, "https://mirror.nju.edu.cn", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn", DelegateToMirror}, - {&Zju, "https://mirrors.zju.edu.cn", DelegateToMirror}, - {&Pku, "https://mirrors.pku.edu.cn", DelegateToMirror}, - {&NJTech, "https://mirrors.njtech.edu.cn", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn", DelegateToMirror}, - {&Sjtug_Siyuan, "https://mirror.sjtu.edu.cn", DelegateToMirror}, - {&Lzuoss, "https://mirror.lzu.edu.cn", DelegateToMirror} + {&UpstreamProvider, "https://repo.anaconda.com", DelegateToUpstream}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn", DelegateToMirror}, + {&Bjtu, "https://mirror.bjtu.edu.cn", DelegateToMirror}, + {&Nju, "https://mirror.nju.edu.cn", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn", DelegateToMirror}, + {&Zju, "https://mirrors.zju.edu.cn", DelegateToMirror}, + {&Pku, "https://mirrors.pku.edu.cn", DelegateToMirror}, + {&NJTech, "https://mirrors.njtech.edu.cn", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn", DelegateToMirror}, + {&Sjtug_Siyuan, "https://mirror.sjtu.edu.cn", DelegateToMirror}, + {&Lzuoss, "https://mirror.lzu.edu.cn", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/ware/CocoaPods.c b/src/recipe/ware/CocoaPods.c index c964d2b..1483dba 100644 --- a/src/recipe/ware/CocoaPods.c +++ b/src/recipe/ware/CocoaPods.c @@ -25,11 +25,11 @@ wr_cocoapods_prelude () chef_allow_user_define(this); def_sources_begin() - {&upstream, "https://github.com/CocoaPods/Specs.git", DelegateToUpstream}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror}, - {&Nju, "https://mirror.nju.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror}, - {&Nyist, "https://mirror.nyist.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror} + {&UpstreamProvider, "https://github.com/CocoaPods/Specs.git", DelegateToUpstream}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror}, + {&Nju, "https://mirror.nju.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror}, + {&Nyist, "https://mirror.nyist.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/ware/Docker/Docker.c b/src/recipe/ware/Docker/Docker.c index 838c36b..8c7d8c8 100644 --- a/src/recipe/ware/Docker/Docker.c +++ b/src/recipe/ware/Docker/Docker.c @@ -43,9 +43,9 @@ wr_docker_prelude () chef_allow_user_define(this); def_sources_begin() - {&upstream, "https://hub.docker.com/", DelegateToUpstream}, - {&DaoCloud, "https://docker.m.daocloud.io", DelegateToMirror}, - {&Fit2Cloud, "https://docker.1panel.live", DelegateToMirror} + {&UpstreamProvider, "https://hub.docker.com/", DelegateToUpstream}, + {&DaoCloud, "https://docker.m.daocloud.io", DelegateToMirror}, + {&Fit2Cloud, "https://docker.1panel.live", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/ware/Emacs.c b/src/recipe/ware/Emacs.c index 47981fc..3e69010 100644 --- a/src/recipe/ware/Emacs.c +++ b/src/recipe/ware/Emacs.c @@ -34,14 +34,14 @@ wr_emacs_prelude () "Emacs users typically only need to switch sources once and rarely call chsrc, so we only provide documentation to users"); def_sources_begin() - {&upstream, "https://elpa.gnu.org/", DelegateToUpstream}, - {&MirrorZ, "https://help.mirrors.cernet.edu.cn/elpa/", DelegateToMirror}, - {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/docs/emacs-elpa", DelegateToMirror}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/elpa/", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/help/elpa/", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn/help/elpa.html", DelegateToMirror}, - {&Zju, "https://mirrors.zju.edu.cn/docs/elpa/", DelegateToMirror}, - {&EmacsChina, "https://elpamirror.emacs-china.org/", DelegateToMirror} + {&UpstreamProvider, "https://elpa.gnu.org/", DelegateToUpstream}, + {&MirrorZ, "https://help.mirrors.cernet.edu.cn/elpa/", DelegateToMirror}, + {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/docs/emacs-elpa", DelegateToMirror}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/elpa/", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/help/elpa/", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn/help/elpa.html", DelegateToMirror}, + {&Zju, "https://mirrors.zju.edu.cn/docs/elpa/", DelegateToMirror}, + {&EmacsChina, "https://elpamirror.emacs-china.org/", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/ware/Flatpak.c b/src/recipe/ware/Flatpak.c index d6db49c..84a5603 100644 --- a/src/recipe/ware/Flatpak.c +++ b/src/recipe/ware/Flatpak.c @@ -28,15 +28,15 @@ wr_flatpak_prelude () "The test file for Flathub is very small, causing inaccurate speed test results. If you know a URL suitable for speed testing, welcome to contribute: chsrc issue"); def_sources_begin() - {&upstream, "https://flathub.org/repo", DelegateToUpstream}, + {&UpstreamProvider, "https://flathub.org/repo", DelegateToUpstream}, {&Sjtug_Siyuan, "https://mirror.sjtu.edu.cn/flathub", DelegateToMirror}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/flathub", DelegateToMirror}, def_sources_end() - chsrc_set_provider_speed_measure_url (&upstream, "https://flathub.org/repo/flathub.gpg"); + chsrc_set_provider_speed_measure_url (&UpstreamProvider, "https://flathub.org/repo/flathub.gpg"); /* upstream 默认是 ACCURATE 的,但是我们给了一个超小的文件,测速效果严重失真,所以改为 ROUGH */ - chsrc_set_provider_speed_measure_accuracy (&upstream, ROUGH); + chsrc_set_provider_speed_measure_accuracy (&UpstreamProvider, ROUGH); /** * @note 下述上海交大两个镜像站都可使用,但实际使用时出现过无法访问的情况 (GitHub-#178), diff --git a/src/recipe/ware/Guix.c b/src/recipe/ware/Guix.c index 049b83a..ec37298 100644 --- a/src/recipe/ware/Guix.c +++ b/src/recipe/ware/Guix.c @@ -27,8 +27,8 @@ wr_guix_prelude () "Currently only one source available, guixcn source availability unknown"); def_sources_begin() - {&upstream, "https://git.savannah.gnu.org/git/guix.git", DelegateToUpstream}, - {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/git/guix.git", DelegateToMirror} + {&UpstreamProvider, "https://git.savannah.gnu.org/git/guix.git", DelegateToUpstream}, + {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/git/guix.git", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/ware/Homebrew/Homebrew.c b/src/recipe/ware/Homebrew/Homebrew.c index 566b8e8..525cd69 100644 --- a/src/recipe/ware/Homebrew/Homebrew.c +++ b/src/recipe/ware/Homebrew/Homebrew.c @@ -30,11 +30,11 @@ wr_homebrew_prelude () "This source switching is implemented by writing environment variables. If switching sources multiple times, please manually clean the profile file"); def_sources_begin() - {&upstream, "https://github.com/Homebrew/brew.git", DelegateToUpstream}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/", DelegateToMirror}, - {&Nju, "https://mirror.nju.edu.cn/", DelegateToMirror}, - {&Nyist, "https://mirror.nyist.edu.cn/", DelegateToMirror} + {&UpstreamProvider, "https://github.com/Homebrew/brew.git", DelegateToUpstream}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/", DelegateToMirror}, + {&Nju, "https://mirror.nju.edu.cn/", DelegateToMirror}, + {&Nyist, "https://mirror.nyist.edu.cn/", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/ware/Nix.c b/src/recipe/ware/Nix.c index 05c5486..1fa010f 100644 --- a/src/recipe/ware/Nix.c +++ b/src/recipe/ware/Nix.c @@ -24,14 +24,14 @@ wr_nix_prelude () chef_forbid_user_define(this); def_sources_begin() - {&upstream, "https://channels.nixos.org/", DelegateToUpstream}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/nix-channels/", DelegateToMirror}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/", DelegateToMirror}, - {&Nju, "https://mirror.nju.edu.cn/nix-channels/", DelegateToMirror}, - {&Ustc, "https://mirrors.ustc.edu.cn/nix-channels/", DelegateToMirror}, - {&Sjtug_Siyuan, "https://mirror.sjtu.edu.cn/nix-channels/", DelegateToMirror}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/nix-channels/", DelegateToMirror}, - {&Iscas, "https://mirror.iscas.ac.cn/nix-channels/", DelegateToMirror} + {&UpstreamProvider, "https://channels.nixos.org/", DelegateToUpstream}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/nix-channels/", DelegateToMirror}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/", DelegateToMirror}, + {&Nju, "https://mirror.nju.edu.cn/nix-channels/", DelegateToMirror}, + {&Ustc, "https://mirrors.ustc.edu.cn/nix-channels/", DelegateToMirror}, + {&Sjtug_Siyuan, "https://mirror.sjtu.edu.cn/nix-channels/", DelegateToMirror}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/nix-channels/", DelegateToMirror}, + {&Iscas, "https://mirror.iscas.ac.cn/nix-channels/", DelegateToMirror} def_sources_end() } diff --git a/src/recipe/ware/TeX-Live.c b/src/recipe/ware/TeX-Live.c index 86637be..0bd25d4 100644 --- a/src/recipe/ware/TeX-Live.c +++ b/src/recipe/ware/TeX-Live.c @@ -27,22 +27,22 @@ wr_tex_prelude () chef_allow_user_define(this); def_sources_begin() - {&upstream, "https://ctan.org/tex-archive/systems/texlive/tlnet", DelegateToUpstream}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/CTAN/systems/texlive/tlnet", DelegateToMirror}, - {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/ctan/systems/texlive/tlnet", - "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"}, - {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet", - "https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/CTAN/systems/texlive/tlnet", - "https://mirrors.bfsu.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"}, - {&Bjtu, "https://mirror.bjtu.edu.cn/ctan/systems/texlive/tlnet", - "https://mirror.bjtu.edu.cn/ctan/systems/texlive/tlnet/archive/fandol.tar.xz"}, - {&Lzuoss, "https://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet", - "https://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"}, - {&Jlu, "https://mirrors.jlu.edu.cn/CTAN/systems/texlive/tlnet", - "https://mirrors.jlu.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"}, - {&Sustech, "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet", - "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"} + {&UpstreamProvider, "https://ctan.org/tex-archive/systems/texlive/tlnet", DelegateToUpstream}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/CTAN/systems/texlive/tlnet", DelegateToMirror}, + {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/ctan/systems/texlive/tlnet", + "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"}, + {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet", + "https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/CTAN/systems/texlive/tlnet", + "https://mirrors.bfsu.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"}, + {&Bjtu, "https://mirror.bjtu.edu.cn/ctan/systems/texlive/tlnet", + "https://mirror.bjtu.edu.cn/ctan/systems/texlive/tlnet/archive/fandol.tar.xz"}, + {&Lzuoss, "https://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet", + "https://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"}, + {&Jlu, "https://mirrors.jlu.edu.cn/CTAN/systems/texlive/tlnet", + "https://mirrors.jlu.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"}, + {&Sustech, "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet", + "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"} def_sources_end() } diff --git a/src/recipe/ware/WinGet.c b/src/recipe/ware/WinGet.c index c4b8751..2ffccf1 100644 --- a/src/recipe/ware/WinGet.c +++ b/src/recipe/ware/WinGet.c @@ -23,12 +23,12 @@ wr_winget_prelude () chef_allow_user_define(this); def_sources_begin() - {&upstream, "https://cdn.winget.microsoft.com/cache", NULL}, - {&MirrorZ, "https://mirrors.cernet.edu.cn/winget-source", NULL}, - {&Ustc, "https://mirrors.ustc.edu.cn/winget-source", NULL}, - {&Nju, "https://mirror.nju.edu.cn/winget-source", NULL}, - {&Nyist, "https://mirror.nyist.edu.cn/winget-source", NULL}, - {&Xjtu, "https://mirrors.xjtu.edu.cn/winget-source", NULL} + {&UpstreamProvider, "https://cdn.winget.microsoft.com/cache", NULL}, + {&MirrorZ, "https://mirrors.cernet.edu.cn/winget-source", NULL}, + {&Ustc, "https://mirrors.ustc.edu.cn/winget-source", NULL}, + {&Nju, "https://mirror.nju.edu.cn/winget-source", NULL}, + {&Nyist, "https://mirror.nyist.edu.cn/winget-source", NULL}, + {&Xjtu, "https://mirrors.xjtu.edu.cn/winget-source", NULL} def_sources_end() }