mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-27 04:59:29 +08:00
Rename struct
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @update 2024-11-21
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_armbian_sources[] = {
|
||||
{&UpstreamProvider, "http://apt.armbian.com"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @update 2024-11-21
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_debian_sources[] = {
|
||||
{&UpstreamProvider, "http://deb.debian.org/debian"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/debian/"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @update 2024-11-21
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_kali_sources[] = {
|
||||
{&UpstreamProvider, "http://http.kali.org/kali"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali"},
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
/**
|
||||
* @update 2024-11-21
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_linuxlite_sources[] = {
|
||||
{&UpstreamProvider, "http://repo.linuxliteos.com/linuxlite/"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/"},
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* @update 2024-11-21 更新
|
||||
* @note 实际上镜像站里的内容和Ubuntu的不太一样
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_linuxmint_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/"},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/**
|
||||
* @update 2024-04-18
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_ros_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @time 2023-09-29 更新
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_raspberrypi_sources[] = {
|
||||
{&UpstreamProvider, "https://archive.raspberrypi.com/"}, // https://archive.raspberrypi.org/ until Debian "bullseye" release
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/raspberrypi/"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @time 2024-11-21 更新
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_trisquel_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @update 2024-11-21
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_ubuntu_sources[] = {
|
||||
{&UpstreamProvider, "http://archive.ubuntu.com/ubuntu/"}, //不支持https
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu/"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_deepin_sources[] = {
|
||||
{&UpstreamProvider, "https://community-packages.deepin.com/deepin"},
|
||||
{&Ali, "https://mirrors.aliyun.com/deepin"},
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
/**
|
||||
* @time 2023-09-29 更新
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_openkylin_sources[] = {
|
||||
{&UpstreamProvider, "https://archive.openkylin.top/openkylin/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/openkylin/"},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_alpine_sources[] = {
|
||||
{&UpstreamProvider, "http://dl-cdn.alpinelinux.org/alpine"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine"},
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* [2023-09-27] 请务必保持Nju前面有至少一个镜像,原因请查看 freebsd 的换源函数
|
||||
* }
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_freebsd_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ustc, "mirrors.ustc.edu.cn"},
|
||||
@@ -41,7 +41,7 @@ os_freebsd_setsrc (char *option)
|
||||
|
||||
int index = use_specific_mirror_or_auto_select (option, os_freebsd);
|
||||
|
||||
SourceInfo source = os_freebsd_sources[index];
|
||||
Source_t source = os_freebsd_sources[index];
|
||||
chsrc_confirm_source;
|
||||
|
||||
chsrc_log2 ("1. 添加 freebsd-pkg 源 (二进制安装包)");
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_netbsd_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/pkgsrc/packages/NetBSD/"},
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_openbsd_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/OpenBSD/"},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_gentoo_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "mirrors.aliyun.com"},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/**
|
||||
* @update 2024-08-08
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_openwrt_sources[] = {
|
||||
{&UpstreamProvider, "http://downloads.openwrt.org"},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt"},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/**
|
||||
* @time 2023-09-29 更新
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_solus_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/**
|
||||
* @time 2023-09-24 更新
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_void_sources[] = {
|
||||
{&UpstreamProvider, "https://repo-default.voidlinux.org"},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux"},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/**
|
||||
* @time 2024-06-12 更新
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_almalinux_sources[] = {
|
||||
{&UpstreamProvider, "http://repo.almalinux.org/almalinux"},
|
||||
{&Ali, "https://mirrors.aliyun.com/almalinux"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* @time 2024-06-12 更新
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_anolis_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/anolis"},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/**
|
||||
* @update 2024-11-04
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_fedora_sources[] = {
|
||||
{&UpstreamProvider, "http://download.example/pub/fedora/linux"},
|
||||
{&Ali, "https://mirrors.aliyun.com/fedora"},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/**
|
||||
* @time 2024-06-12 更新
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_rockylinux_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/rocky"},
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
/**
|
||||
* @update 2024-09-14
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_openeuler_sources[] = {
|
||||
{&UpstreamProvider, "https://repo.openeuler.org/"},
|
||||
{&Ali, "https://mirrors.aliyun.com/openeuler/"},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/**
|
||||
* @update 2024-08-16
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_opensuse_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/opensuse"},
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* @update 2024-07-03
|
||||
* @note 不要给后面加 / ,因为ARM情况下,还要额外加一个 arm 后缀
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_arch_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/archlinux"},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/**
|
||||
* @time 2024-04-18 更新
|
||||
*/
|
||||
static SourceInfo
|
||||
static Source_t
|
||||
os_msys2_sources[] = {
|
||||
{&UpstreamProvider, NULL},
|
||||
{&Ali, "https://mirrors.aliyun.com/msys2"},
|
||||
|
||||
Reference in New Issue
Block a user