mirror of
https://github.com/RubyMetric/chsrc
synced 2025-11-18 23:57:43 +08:00
Rename option controlling API to deny
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* File Authors : 曾奥然 <ccmywish@qq.com>
|
||||
* Contributors : BingChunMoLi <bingchunmoli@bingchunmoli.com>
|
||||
* Created On : <2025-08-09>
|
||||
* Last Modified : <2025-08-27>
|
||||
* Last Modified : <2025-10-27>
|
||||
*
|
||||
* chef DSL: for chefs (recipe makers) to define a target
|
||||
* ------------------------------------------------------------*/
|
||||
@@ -186,7 +186,7 @@ chef_allow_english (Target_t *target)
|
||||
}
|
||||
|
||||
void
|
||||
chef_forbid_english (Target_t *target)
|
||||
chef_deny_english (Target_t *target)
|
||||
{
|
||||
xy_cant_be_null (target);
|
||||
target->can_english = false;
|
||||
@@ -226,7 +226,7 @@ chef_allow_user_define (Target_t *target)
|
||||
}
|
||||
|
||||
void
|
||||
chef_forbid_user_define (Target_t *target)
|
||||
chef_deny_user_define (Target_t *target)
|
||||
{
|
||||
xy_cant_be_null (target);
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ pl_clojure_prelude ()
|
||||
chef_set_sauciers (this, 1, "@hezonglun");
|
||||
|
||||
chef_allow_local_mode (this, FullyCan, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
|
||||
@@ -32,7 +32,7 @@ pl_go_prelude ()
|
||||
chef_set_sauciers (this, 2, "@czyt", "@techoc");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ pl_haskell_prelude ()
|
||||
chef_set_sauciers (this, 1, "@hezonglun");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
|
||||
@@ -18,7 +18,7 @@ pl_java_prelude ()
|
||||
chef_set_sauciers (this, 0);
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
// 阿里巴巴开源镜像站需要修改为此才能测速
|
||||
|
||||
@@ -25,7 +25,7 @@ pl_lua_prelude ()
|
||||
chef_set_sauciers (this, 1, "@hezonglun");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
|
||||
@@ -18,8 +18,8 @@ pl_nuget_prelude ()
|
||||
chef_set_sauciers (this, 0);
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&UpstreamProvider, "https://www.nuget.org/api/v3/", DelegateToUpstream},
|
||||
|
||||
@@ -18,7 +18,7 @@ pl_ocaml_prelude ()
|
||||
chef_set_sauciers (this, 1, "@hezonglun");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
|
||||
@@ -18,7 +18,7 @@ pl_php_prelude ()
|
||||
chef_set_sauciers (this, 1, "@hezonglun");
|
||||
|
||||
chef_allow_local_mode (this, FullyCan, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
|
||||
@@ -18,7 +18,7 @@ pl_perl_prelude ()
|
||||
chef_set_sauciers (this, 2, "@hezonglun", "@Mikachu2333");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english (this);
|
||||
chef_deny_english (this);
|
||||
chef_allow_user_define (this);
|
||||
|
||||
def_sources_begin()
|
||||
|
||||
@@ -18,7 +18,7 @@ pl_r_prelude ()
|
||||
chef_set_sauciers (this, 1, "@hezonglun");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
// 以下注释的,是不含有bioconductor的镜像站,我们在换cran的同时,也直接帮助用户换bioconductor
|
||||
|
||||
@@ -18,7 +18,7 @@ pl_rust_cargo_prelude (void)
|
||||
chef_set_sauciers (this, 1, "@happy-game");
|
||||
|
||||
chef_allow_local_mode (this, FullyCan, NULL, NULL);
|
||||
chef_forbid_english (this);
|
||||
chef_deny_english (this);
|
||||
chef_allow_user_define (this);
|
||||
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ pl_rust_rustup_prelude (void)
|
||||
chef_set_sauciers (this, 2, "@Yangmoooo", "@Mikachu2333");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english (this);
|
||||
chef_deny_english (this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
|
||||
@@ -18,8 +18,8 @@ os_armbian_prelude ()
|
||||
chef_set_sauciers (this, 2, "@ccmywish", "@Yangmoooo");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ os_debian_prelude ()
|
||||
chef_set_sauciers (this, 1, "@Yangmoooo");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ os_kali_prelude ()
|
||||
chef_set_sauciers (this, 2, "@Yangmoooo", "@happy-game");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ os_linuxlite_prelude ()
|
||||
chef_set_sauciers (this, 1, "@Yangmoooo");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ os_linuxmint_prelude ()
|
||||
chef_set_sauciers (this, 1, "@happy-game");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
|
||||
/* @note 实际上镜像站里的内容和Ubuntu的不太一样 */
|
||||
|
||||
@@ -18,8 +18,8 @@ os_ros_prelude ()
|
||||
chef_set_sauciers (this, 2, "@ccmywish", "@zouri");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, "该换源方案中,URL存在拼凑,因此不能手动使用某URL来换源", "In this switching method, URLs are constructed, so manual URL specification is not supported");
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ os_raspberrypi_prelude ()
|
||||
chef_set_sauciers (this, 1, "@Yangmoooo");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ os_termux_prelude ()
|
||||
chef_set_sauciers (this, 0);
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, "该 recipe 存在对应的 bootstrapper", "This recipe has a corresponding bootstrapper");
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ os_trisquel_prelude ()
|
||||
chef_set_sauciers (this, 0);
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -19,8 +19,8 @@ os_ubuntu_prelude ()
|
||||
chef_set_sauciers (this, 1, "@XUANJI233");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ os_deepin_prelude ()
|
||||
chef_set_sauciers (this, 1, "@Yangmoooo");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ os_openkylin_prelude ()
|
||||
chef_set_sauciers (this, 1, "@ccmywish");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ os_alpine_prelude ()
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_allow_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ os_freebsd_prelude ()
|
||||
chef_set_sauciers (this, 1, "@hezonglun");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
|
||||
// 2023-09-24: 以下三个USTC, NJU, Netease 均维护了 freebsd-pkg freebsd-ports
|
||||
|
||||
@@ -19,8 +19,8 @@ os_netbsd_prelude ()
|
||||
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&UpstreamProvider, "http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/", DelegateToUpstream},
|
||||
|
||||
@@ -18,8 +18,8 @@ os_openbsd_prelude ()
|
||||
chef_set_sauciers (this, 1, "@hezonglun");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&UpstreamProvider, "https://cdn.openbsd.org/pub/OpenBSD/", DelegateToUpstream},
|
||||
|
||||
@@ -19,7 +19,7 @@ os_gentoo_prelude ()
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_allow_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ os_solus_prelude ()
|
||||
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
@@ -18,7 +18,7 @@ os_voidlinux_prelude ()
|
||||
chef_set_sauciers (this, 1, "@Yangmoooo");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
@@ -18,8 +18,8 @@ os_almalinux_prelude ()
|
||||
chef_set_sauciers (this, 1, "@Yangmoooo");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ os_anolis_prelude ()
|
||||
chef_set_sauciers (this, 0);
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ os_fedora_prelude ()
|
||||
chef_set_sauciers (this, 1, "@ccmywish");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ os_rockylinux_prelude ()
|
||||
chef_set_sauciers (this, 1, "@happy-game");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&UpstreamProvider, "https://dl.rockylinux.org", DelegateToUpstream},
|
||||
|
||||
@@ -18,8 +18,8 @@ os_openeuler_prelude ()
|
||||
chef_set_sauciers (this, 3, "@ccmywish", "@Yangmoooo", "@happy-game");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ os_opensuse_prelude ()
|
||||
chef_set_sauciers (this, 0);
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note(this, NULL, NULL);
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ os_arch_prelude ()
|
||||
chef_set_sauciers (this, 2, "@happy-game", "@Young-Lord");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note (this,
|
||||
"可额外使用 chsrc set archlinuxcn 来更换 Arch Linux CN Repository 源",
|
||||
@@ -124,8 +124,8 @@ os_archlinuxcn_prelude ()
|
||||
chef_set_sauciers (this, 2, "@happy-game", "@Young-Lord");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note (this,
|
||||
"可额外使用 chsrc set arch 来更换 Arch Linux 源",
|
||||
|
||||
@@ -18,8 +18,8 @@ os_msys2_prelude ()
|
||||
chef_set_sauciers (this, 2, "@ccmywish", "@hezonglun");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&UpstreamProvider, "https://mirror.msys2.org/", DelegateToUpstream},
|
||||
|
||||
@@ -17,8 +17,8 @@ os_manjaro_prelude ()
|
||||
chef_set_sauciers (this, 0);
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&UpstreamProvider, NULL, DelegateToUpstream}
|
||||
|
||||
@@ -73,10 +73,10 @@ void
|
||||
chef_allow_local_mode (this, PartiallyCan, "具体说明是否支持项目级换源...", "Tell users the local mode support");
|
||||
|
||||
// chef_allow_english(this); // 项目是否支持英文
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
|
||||
// chef_allow_user_define(this); // 是否支持用户自定义镜像源
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note ("中文备注说明...", "English note...");
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ wr_anaconda_prelude ()
|
||||
chef_set_sauciers (this, 2, "@Yangmoooo", "@xyx1926885268");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&UpstreamProvider, "https://repo.anaconda.com", DelegateToUpstream},
|
||||
|
||||
@@ -19,7 +19,7 @@ wr_cocoapods_prelude ()
|
||||
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
|
||||
@@ -35,7 +35,7 @@ wr_docker_prelude ()
|
||||
chef_set_sauciers (this, 0);
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
|
||||
@@ -25,8 +25,8 @@ wr_emacs_prelude ()
|
||||
chef_set_sauciers (this, 0);
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note (this, "Emacs用户往往只需要一次性换源,只会极少次调用 chsrc,我们只给用户提供文档",
|
||||
"Emacs users typically only need to switch sources once and rarely call chsrc, so we only provide documentation to users");
|
||||
|
||||
@@ -18,7 +18,7 @@ wr_flatpak_prelude ()
|
||||
chef_set_sauciers (this, 1, "@jialinlvcn");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
chef_set_note (this, "对Flathub目标进行测速的文件非常小,测速效果严重失真,若你知道可供测速的URL,欢迎参与贡献: chsrc issue",
|
||||
|
||||
@@ -18,8 +18,8 @@ wr_guix_prelude ()
|
||||
chef_set_sauciers (this, 0);
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note (this, "目前只有一个源, guixcn 的源不知道是否可用",
|
||||
"Currently only one source available, guixcn source availability unknown");
|
||||
|
||||
@@ -21,7 +21,7 @@ wr_homebrew_prelude ()
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_allow_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
chef_set_note (this, "该换源通过写入环境变量实现,若多次换源,请手动清理profile文件",
|
||||
"This source switching is implemented by writing environment variables. If switching sources multiple times, please manually clean the profile file");
|
||||
|
||||
@@ -18,8 +18,8 @@ wr_nix_prelude ()
|
||||
chef_set_sauciers (this, 0);
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
chef_deny_english(this);
|
||||
chef_deny_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
{&UpstreamProvider, "https://channels.nixos.org/", DelegateToUpstream},
|
||||
|
||||
@@ -20,7 +20,7 @@ wr_tex_prelude ()
|
||||
chef_set_sauciers (this, 1, "@Mikachu2333");
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
|
||||
@@ -17,7 +17,7 @@ wr_winget_prelude ()
|
||||
chef_set_cooks (this, 1, "@ccmywish");
|
||||
chef_set_sauciers (this, 1, "@Mikachu2333");
|
||||
|
||||
chef_forbid_english(this);
|
||||
chef_deny_english(this);
|
||||
chef_allow_user_define(this);
|
||||
|
||||
def_sources_begin()
|
||||
|
||||
Reference in New Issue
Block a user