mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-27 04:59:29 +08:00
Introduce provider
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_armbian_sources[] = {
|
||||
{&Upstream, "http://apt.armbian.com"},
|
||||
{&UpstreamProvider, "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"},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_debian_sources[] = {
|
||||
{&Upstream, "http://deb.debian.org/debian"},
|
||||
{&UpstreamProvider, "http://deb.debian.org/debian"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/debian/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/debian"},
|
||||
{&Volcengine, "https://mirrors.volces.com/debian"},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_kali_sources[] = {
|
||||
{&Upstream, "http://http.kali.org/kali"},
|
||||
{&UpstreamProvider, "http://http.kali.org/kali"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali"},
|
||||
{&Ali, "https://mirrors.aliyun.com/kali"},
|
||||
{&Volcengine, "https://mirrors.volces.com/kali"},
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_linuxlite_sources[] = {
|
||||
{&Upstream, "http://repo.linuxliteos.com/linuxlite/"},
|
||||
{&UpstreamProvider, "http://repo.linuxliteos.com/linuxlite/"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/"},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/linuxliteos/"}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_linuxmint_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/"},
|
||||
{&Ali, "http://mirrors.aliyun.com/linuxmint-packages/"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_ros_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn"},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_raspberrypi_sources[] = {
|
||||
{&Upstream, "https://archive.raspberrypi.com/"}, // https://archive.raspberrypi.org/ until Debian "bullseye" release
|
||||
{&UpstreamProvider, "https://archive.raspberrypi.com/"}, // https://archive.raspberrypi.org/ until Debian "bullseye" release
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/raspberrypi/"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/raspberrypi/"},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_trisquel_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/trisquel/"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/trisquel/"},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_ubuntu_sources[] = {
|
||||
{&Upstream, "http://archive.ubuntu.com/ubuntu/"}, //不支持https
|
||||
{&UpstreamProvider, "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"},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_deepin_sources[] = {
|
||||
{&Upstream, "https://community-packages.deepin.com/deepin"},
|
||||
{&UpstreamProvider, "https://community-packages.deepin.com/deepin"},
|
||||
{&Ali, "https://mirrors.aliyun.com/deepin"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/deepin"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/deepin"},
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_openkylin_sources[] = {
|
||||
{&Upstream, "https://archive.openkylin.top/openkylin/"},
|
||||
{&UpstreamProvider, "https://archive.openkylin.top/openkylin/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/openkylin/"},
|
||||
{&Netease, "https://mirrors.163.com/openkylin/"},
|
||||
};
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_alpine_sources[] = {
|
||||
{&Upstream, "http://dl-cdn.alpinelinux.org/alpine"},
|
||||
{&UpstreamProvider, "http://dl-cdn.alpinelinux.org/alpine"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine"},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/alpine"},
|
||||
{&Sustech, "https://mirrors.sustech.edu.cn/alpine"},
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_freebsd_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ustc, "mirrors.ustc.edu.cn"},
|
||||
{&Nju, "mirror.nju.edu.cn"},
|
||||
{&Netease, "mirrors.163.com"},
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_netbsd_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/pkgsrc/packages/NetBSD/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/pkgsrc/packages/NetBSD/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/pkgsrc/packages/NetBSD/"},
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_openbsd_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/OpenBSD/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/OpenBSD/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/OpenBSD/"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_gentoo_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "mirrors.aliyun.com"},
|
||||
{&Bfsu, "mirrors.bfsu.edu.cn"},
|
||||
{&Ustc, "mirrors.ustc.edu.cn"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_openwrt_sources[] = {
|
||||
{&Upstream, "http://downloads.openwrt.org"},
|
||||
{&UpstreamProvider, "http://downloads.openwrt.org"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt"},
|
||||
{&Ali, "https://mirrors.aliyun.com/openwrt"},
|
||||
{&Tencent, "https://mirrors.cloud.tencent.com/openwrt"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_solus_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_void_sources[] = {
|
||||
{&Upstream, "https://repo-default.voidlinux.org"},
|
||||
{&UpstreamProvider, "https://repo-default.voidlinux.org"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux"},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/voidlinux"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/voidlinux"}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_almalinux_sources[] = {
|
||||
{&Upstream, "http://repo.almalinux.org/almalinux"},
|
||||
{&UpstreamProvider, "http://repo.almalinux.org/almalinux"},
|
||||
{&Ali, "https://mirrors.aliyun.com/almalinux"},
|
||||
{&Volcengine, "https://mirrors.volces.com/almalinux"},
|
||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/almalinux"},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_anolis_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/anolis"},
|
||||
{&Hust, "https://mirrors.hust.edu.cn/anolis"}
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_fedora_sources[] = {
|
||||
{&Upstream, "http://download.example/pub/fedora/linux"},
|
||||
{&UpstreamProvider, "http://download.example/pub/fedora/linux"},
|
||||
{&Ali, "https://mirrors.aliyun.com/fedora"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/fedora"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/fedora"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_rockylinux_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/rocky"},
|
||||
{&Ali, "https://mirrors.aliyun.com/rockylinux"},
|
||||
{&Volcengine, "https://mirrors.volces.com/rockylinux"},
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_openeuler_sources[] = {
|
||||
{&Upstream, "https://repo.openeuler.org/"},
|
||||
{&UpstreamProvider, "https://repo.openeuler.org/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/openeuler/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/openeuler/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/openeuler/"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_opensuse_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/opensuse"},
|
||||
{&Volcengine, "https://mirrors.volces.com/opensuse"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/opensuse"},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_arch_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/archlinux"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinux"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/archlinux"},
|
||||
@@ -31,7 +31,7 @@ os_arch_sources[] = {
|
||||
* @note 根据 GitHub:@zheng7fu2 建议,拆分 archlinuxcn 出来
|
||||
*/
|
||||
os_archlinuxcn_sources[] = {
|
||||
{&Upstream, "https://repo.archlinuxcn.org/"},
|
||||
{&UpstreamProvider, "https://repo.archlinuxcn.org/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/archlinuxcn/"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinuxcn/"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/archlinuxcn/"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
static SourceInfo
|
||||
os_msys2_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/msys2"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/msys2"},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/msys2"},
|
||||
|
||||
Reference in New Issue
Block a user