mirror of
https://github.com/RubyMetric/chsrc
synced 2026-03-06 14:20:05 +08:00
Remove def_upstream
This commit is contained in:
@@ -30,7 +30,6 @@ os_armbian_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("http://apt.armbian.com");
|
||||
def_sources_begin()
|
||||
{&upstream, "http://apt.armbian.com", DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian", DelegateToMirror},
|
||||
|
||||
@@ -34,7 +34,6 @@ os_debian_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("http://deb.debian.org/debian");
|
||||
def_sources_begin()
|
||||
{&upstream, "http://deb.debian.org/debian", DelegateToUpstream},
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@ os_kali_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("http://http.kali.org/kali");
|
||||
def_sources_begin()
|
||||
{&upstream, "http://http.kali.org/kali", DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali", DelegateToMirror},
|
||||
|
||||
@@ -29,7 +29,6 @@ os_linuxlite_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("http://repo.linuxliteos.com/linuxlite/");
|
||||
def_sources_begin()
|
||||
{&upstream, "http://repo.linuxliteos.com/linuxlite/", DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/", DelegateToMirror},
|
||||
|
||||
@@ -29,7 +29,6 @@ os_linuxmint_prelude ()
|
||||
|
||||
|
||||
/* @note 实际上镜像站里的内容和Ubuntu的不太一样 */
|
||||
def_upstream("http://packages.linuxmint.com");
|
||||
def_sources_begin()
|
||||
{&upstream, "http://packages.linuxmint.com", DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/", DelegateToMirror},
|
||||
|
||||
@@ -30,7 +30,6 @@ os_ros_prelude ()
|
||||
|
||||
chef_set_note(this, "该换源方案中,URL存在拼凑,因此不能手动使用某URL来换源", "In this switching method, URLs are constructed, so manual URL specification is not supported");
|
||||
|
||||
def_upstream("http://packages.ros.org");
|
||||
def_sources_begin()
|
||||
{&upstream, "http://packages.ros.org", DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com", DelegateToMirror},
|
||||
|
||||
@@ -31,7 +31,6 @@ os_raspberrypi_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("https://archive.raspberrypi.com/");
|
||||
def_sources_begin()
|
||||
// https://archive.raspberrypi.org/ until Debian "bullseye" release
|
||||
{&upstream, "https://archive.raspberrypi.com/", DelegateToUpstream},
|
||||
|
||||
@@ -29,7 +29,6 @@ os_termux_prelude ()
|
||||
|
||||
chef_set_note(this, "该 recipe 存在对应的 bootstrapper", "This recipe has a corresponding bootstrapper");
|
||||
|
||||
def_upstream("https://packages.termux.org/apt/termux-main/");
|
||||
def_sources_begin()
|
||||
{&upstream, "https://packages.termux.org/apt/termux-main/", DelegateToUpstream},
|
||||
{&Ustc, "https://mirrors.ustc.edu.cn/termux/", DelegateToMirror},
|
||||
|
||||
@@ -31,7 +31,6 @@ os_trisquel_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("http://archive.trisquel.info/trisquel/");
|
||||
def_sources_begin()
|
||||
{&upstream, "http://archive.trisquel.info/trisquel/", DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/", DelegateToMirror},
|
||||
|
||||
@@ -33,7 +33,6 @@ os_ubuntu_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("http://archive.ubuntu.com/ubuntu/");
|
||||
def_sources_begin()
|
||||
{&upstream, "http://archive.ubuntu.com/ubuntu/", /* 不支持https */
|
||||
DelegateToUpstream},
|
||||
|
||||
@@ -29,7 +29,6 @@ os_deepin_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("https://community-packages.deepin.com/deepin");
|
||||
def_sources_begin()
|
||||
{&upstream, "https://community-packages.deepin.com/deepin", DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/deepin", DelegateToMirror},
|
||||
|
||||
@@ -32,7 +32,6 @@ os_openkylin_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("https://archive.openkylin.top/openkylin/");
|
||||
def_sources_begin()
|
||||
{&upstream, "https://archive.openkylin.top/openkylin/", DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/openkylin/", DelegateToMirror},
|
||||
|
||||
@@ -29,7 +29,6 @@ os_alpine_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("http://dl-cdn.alpinelinux.org/alpine");
|
||||
def_sources_begin()
|
||||
{&upstream, "http://dl-cdn.alpinelinux.org/alpine", DelegateToUpstream},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine", DelegateToMirror},
|
||||
|
||||
@@ -27,8 +27,6 @@ os_freebsd_prelude ()
|
||||
|
||||
chef_set_note ("2023-09-24: 以下三个USTC, NJU, Netease 均维护了 freebsd-pkg freebsd-ports\n2023-09-27: 请务必保持Nju前面有至少一个镜像,原因请查看 freebsd 的换源函数", NULL);
|
||||
|
||||
def_upstream (NULL);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror},
|
||||
|
||||
@@ -28,8 +28,6 @@ os_netbsd_prelude ()
|
||||
|
||||
chef_set_note ("根据 @ykla: NetBSD 默认状态下没有 pkgsrc,用户可能安装了也可能没安装", NULL);
|
||||
|
||||
def_upstream (NULL);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/pkgsrc/packages/NetBSD/", DelegateToMirror},
|
||||
|
||||
@@ -26,8 +26,6 @@ os_openbsd_prelude ()
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
|
||||
def_upstream (NULL);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/OpenBSD/", DelegateToMirror},
|
||||
|
||||
@@ -29,7 +29,6 @@ os_gentoo_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("https://www.gentoo.org/downloads/mirrors/");
|
||||
def_sources_begin()
|
||||
{&upstream, "rsync://rsync.gentoo.org/gentoo-portage", DelegateToUpstream},
|
||||
{&Ali, "mirrors.aliyun.com", DelegateToMirror},
|
||||
|
||||
@@ -30,7 +30,6 @@ os_openwrt_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("https://downloads.openwrt.org");
|
||||
def_sources_begin()
|
||||
{&upstream, "https://downloads.openwrt.org", DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt", DelegateToMirror},
|
||||
|
||||
@@ -29,7 +29,6 @@ os_solus_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("https://packages.getsol.us/");
|
||||
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},
|
||||
|
||||
@@ -29,7 +29,6 @@ os_voidlinux_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("https://repo-default.voidlinux.org");
|
||||
def_sources_begin()
|
||||
{&upstream, "https://repo-default.voidlinux.org", DelegateToUpstream},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux", DelegateToMirror},
|
||||
|
||||
@@ -27,7 +27,6 @@ os_almalinux_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("http://repo.almalinux.org/almalinux");
|
||||
def_sources_begin()
|
||||
{&upstream, "http://repo.almalinux.org/almalinux", DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/almalinux", DelegateToMirror},
|
||||
|
||||
@@ -27,7 +27,6 @@ os_anolis_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("https://mirrors.openanolis.cn/anolis");
|
||||
def_sources_begin()
|
||||
{&upstream, "https://mirrors.openanolis.cn/anolis", DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/anolis", DelegateToMirror},
|
||||
|
||||
@@ -30,7 +30,6 @@ os_fedora_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("http://download.example/pub/fedora/linux");
|
||||
def_sources_begin()
|
||||
{&upstream, "http://download.example/pub/fedora/linux", DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/fedora", DelegateToMirror},
|
||||
|
||||
@@ -26,7 +26,6 @@ os_rockylinux_prelude ()
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
|
||||
def_upstream ("https://dl.rockylinux.org/");
|
||||
def_sources_begin()
|
||||
{&upstream, "https://dl.rockylinux.org", DelegateToUpstream},
|
||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/rocky", DelegateToMirror},
|
||||
|
||||
@@ -30,7 +30,6 @@ os_openeuler_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("https://repo.openeuler.org/");
|
||||
def_sources_begin()
|
||||
{&upstream, "https://repo.openeuler.org/", DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/openeuler/", DelegateToMirror},
|
||||
|
||||
@@ -29,7 +29,6 @@ os_opensuse_prelude ()
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
def_upstream("https://download.opensuse.org/");
|
||||
def_sources_begin()
|
||||
{&upstream, "https://download.opensuse.org/", DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/opensuse", DelegateToMirror},
|
||||
|
||||
@@ -32,11 +32,11 @@ os_arch_prelude ()
|
||||
|
||||
chef_set_note ("可额外使用 chsrc set archlinuxcn 来更换 Arch Linux CN Repository 源", "You can additionally use chsrc set archlinuxcn to change Arch Linux CN Repository source");
|
||||
|
||||
def_upstream (NULL);
|
||||
/**
|
||||
* @note 不要给后面加 / ,因为ARM情况下,还要额外加一个 arm 后缀
|
||||
*/
|
||||
def_sources_begin()
|
||||
{&upstream, "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},
|
||||
@@ -137,13 +137,9 @@ os_archlinuxcn_prelude ()
|
||||
|
||||
chef_set_note ("可额外使用 chsrc set arch 来更换 Arch Linux 源", "You can additionally use chsrc set arch to change Arch Linux source");
|
||||
|
||||
def_upstream ("https://repo.archlinuxcn.org/");
|
||||
|
||||
/**
|
||||
* @note 根据 @zheng7fu2 建议,拆分 archlinuxcn 出来
|
||||
*/
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&upstream, "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},
|
||||
@@ -156,12 +152,14 @@ os_archlinuxcn_prelude ()
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
os_archlinuxcn_getsrc (char *option)
|
||||
{
|
||||
chsrc_view_file (OS_Pacman_MirrorList);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @consult https://mirrors.tuna.tsinghua.edu.cn/help/archlinuxcn/
|
||||
* @update 2025-05-24
|
||||
|
||||
@@ -25,8 +25,6 @@ os_msys2_prelude ()
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
|
||||
def_upstream (NULL);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/msys2", DelegateToMirror},
|
||||
|
||||
@@ -24,8 +24,6 @@ os_manjaro_prelude ()
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
|
||||
def_upstream (NULL);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, NULL, DelegateToUpstream}
|
||||
/* Manjaro uses GUI tool, no manual sources needed */
|
||||
|
||||
Reference in New Issue
Block a user