Use allow_

This commit is contained in:
Aoran Zeng 2025-08-10 10:15:26 +08:00
parent d6fbaf91ce
commit e235b6dd17
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
41 changed files with 110 additions and 110 deletions

View File

@ -46,9 +46,9 @@ chef_ensure_trailing_slash (char *str)
}
#define chef_has_get() this->getfn = t##_getsrc;
#define chef_has_set() this->setfn = t##_setsrc;
#define chef_has_reset() this->resetfn = t##_resetsrc;
#define chef_allow_get() this->getfn = t##_getsrc;
#define chef_allow_set() this->setfn = t##_setsrc;
#define chef_allow_reset() this->resetfn = t##_resetsrc;
void

View File

@ -20,9 +20,9 @@ os_armbian_prelude ()
"Aoran Zeng", "ccmywish@qq.com",
"Yangmoooo", "yangmoooo@outlook.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
def_upstream("http://apt.armbian.com");
def_sources_begin(os_armbian)

View File

@ -24,9 +24,9 @@ os_debian_prelude ()
"Yangmoooo", "yangmoooo@outlook.com",
"GitHub Copilot", "https://github.com/copilot");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
def_upstream("http://deb.debian.org/debian");
def_sources_begin(os_debian)

View File

@ -20,9 +20,9 @@ os_kali_prelude ()
"Yangmoooo", "yangmoooo@outlook.com",
"Happy Game", "happygame1024@gmail.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
def_upstream("http://http.kali.org/kali");
def_sources_begin(os_kali)

View File

@ -19,9 +19,9 @@ os_linuxlite_prelude ()
chef_set_contributors (this, 1,
"Yangmoooo", "yangmoooo@outlook.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
def_upstream("http://repo.linuxliteos.com/linuxlite/");
def_sources_begin(os_linuxlite)

View File

@ -19,9 +19,9 @@ os_linuxmint_prelude ()
chef_set_contributors (this, 1,
"Happy Game", "happygame1024@gmail.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
/* @note 实际上镜像站里的内容和Ubuntu的不太一样 */
def_upstream("http://packages.linuxmint.com");

View File

@ -20,9 +20,9 @@ os_ros_prelude ()
"Aoran Zeng", "ccmywish@qq.com",
"zouri", "guoshuaisun@outlook.com");
chef_has_get();
chef_has_set();
chef_has_reset();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
this.note = "该换源方案中URL存在拼凑因此不能手动使用某URL来换源";

View File

@ -19,9 +19,9 @@ os_raspberrypi_prelude ()
chef_set_contributors (this, 1,
"Yangmoooo", "yangmoooo@outlook.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetfn();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
/* Raspberry Pi OS 树莓派操作系统,以前称为 Raspbian */
def_upstream("https://archive.raspberrypi.com/");

View File

@ -19,9 +19,9 @@ os_termux_prelude ()
chef_set_contributors (this, 1,
"Nul None", "nul@none.org");
chef_has_get();
chef_has_set();
chef_has_reset();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
this.note = "该 recipe 存在对应的 bootstrapper";
def_upstream("https://packages.termux.org/apt/termux-main/");

View File

@ -19,9 +19,9 @@ os_trisquel_prelude ()
chef_set_contributors (this, 1,
"Nil Null", "nil@null.org");
chef_has_get();
chef_has_set();
chef_has_reset();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
/* Trisquel基于Ubuntu开发不含任何专有软件及专有固件内核使用 Linux-libre */
def_upstream("http://archive.trisquel.info/trisquel/");

View File

@ -21,9 +21,9 @@ os_ubuntu_prelude ()
chef_set_contributors (this, 1,
"Zhao", "1792582687@qq.com");
chef_has_getfn;
chef_has_setfn;
chef_has_resetsrc;
chef_allow_get();
chef_allow_set();
chef_allow_reset();
#define OS_Ubuntu_Speed_URL_Postfix "/dists/noble/Contents-amd64.gz"

View File

@ -19,9 +19,9 @@ os_deepin_prelude ()
chef_set_contributors (this, 1,
"Yangmoooo", "yangmoooo@outlook.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
def_upstream("https://community-packages.deepin.com/deepin");
def_sources_begin(os_deepin)

View File

@ -19,9 +19,9 @@ os_openkylin_prelude ()
chef_set_contributors (this, 1,
"Aoran Zeng", "ccmywish@qq.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetfn();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
/* openKylin直接基于Linux内核开发属于和Debian、openSUSE、Fedora、Arch
* */

View File

@ -25,9 +25,9 @@ os_alpine_prelude ()
chef_set_contributors (this, 1,
"Yangmoooo", "yangmoooo@outlook.com");
chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
// chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = true;

View File

@ -1,7 +1,7 @@
chef_set_created_on ("2023-09-03");
chef_set_authors ("Aoran Zeng <ccmywish@qq.com>", "Heng Guo <2085471348@qq.com>");
chef_set_contributors ("Nil Null <nil@null.org>");
chef_has_setfn;
chef_allow_set();
use_this;
/**

View File

@ -1,8 +1,8 @@
chef_set_created_on ("2023-09-05");
chef_set_authors ("Aoran Zeng <ccmywish@qq.com>", "Heng Guo <2085471348@qq.com>");
chef_set_contributors ("Nil Null <nil@null.org>");
chef_has_getfn;
chef_has_setfn;
chef_allow_get();
chef_allow_set();
use_this;
/**

View File

@ -1,8 +1,8 @@
chef_set_created_on ("2023-09-03");
chef_set_authors ("Heng Guo <2085471348@qq.com>", "Aoran Zeng <ccmywish@qq.com>");
chef_set_contributors ("Nil Null <nil@null.org>");
chef_has_getfn;
chef_has_setfn;
chef_allow_get();
chef_allow_set();
use_this;
/**

View File

@ -19,9 +19,9 @@ os_gentoo_prelude ()
chef_set_contributors (this, 1,
"Aoran Zeng", "ccmywish@qq.com");
// chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
// chef_allow_get();
chef_allow_set();
// chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = true;

View File

@ -26,9 +26,9 @@ os_openwrt_prelude ()
"Yangmoooo", "yangmoooo@outlook.com",
"happy game", "happygame1024@gmail.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = true;

View File

@ -19,9 +19,9 @@ os_solus_prelude ()
chef_set_contributors (this, 1,
"Nil Null", "nil@null.org");
// chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
// chef_allow_get();
chef_allow_set();
// chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;

View File

@ -25,9 +25,9 @@ os_voidlinux_prelude ()
chef_set_contributors (this, 1,
"Yangmoooo", "yangmoooo@outlook.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;

View File

@ -1,7 +1,7 @@
chef_set_created_on ("2024-06-12");
chef_set_authors ("Aoran Zeng <ccmywish@qq.com>");
chef_set_contributors ("Yangmoooo <yangmoooo@outlook.com>");
chef_has_setfn;
chef_allow_set();
use_this;
static SourceProvider_t os_almalinux_upstream =

View File

@ -1,7 +1,7 @@
chef_set_created_on ("2023-09-24");
chef_set_authors ("Aoran Zeng <ccmywish@qq.com>");
chef_set_contributors ("Nil Null <nil@null.org>");
chef_has_setfn;
chef_allow_set();
use_this;
/**

View File

@ -1,8 +1,8 @@
chef_set_created_on ("2023-09-26");
chef_set_authors ("Heng Guo <2085471348@qq.com>", "happy game <happygame1024@gmail.com>");
chef_set_contributors ("Aoran Zeng <ccmywish@qq.com>");
chef_has_setfn;
chef_has_resetsrc;
chef_allow_set();
chef_allow_reset();
use_this;
/**

View File

@ -1,8 +1,8 @@
chef_set_created_on ("2023-09-24");
chef_set_authors ("Aoran Zeng <ccmywish@qq.com>");
chef_set_contributors ("happy game <happygame1024@gmail.com>");
chef_has_setfn;
chef_has_resetsrc;
chef_allow_set();
chef_allow_reset();
use_this;
/**

View File

@ -1,7 +1,7 @@
chef_set_created_on ("2023-09-06");
chef_set_authors ("Heng Guo <2085471348@qq.com>");
chef_set_contributors ("Aoran Zeng <ccmywish@qq.com>", "Yangmoooo <yangmoooo@outlook.com>", "happy game <happygame1024@gmail.com>");
chef_has_setfn;
chef_allow_set();
use_this;
static SourceProvider_t os_openEuler_upstream =
@ -85,6 +85,6 @@ os_openeuler_resetsrc (char *option)
/**
* chsrc ls openeuler
*/
chef_has_getfn;
chef_has_resetsrc;
chef_allow_get();
chef_allow_reset();
def_target(os_openeuler);

View File

@ -19,9 +19,9 @@ os_opensuse_prelude ()
chef_set_contributors (this, 1,
"Aoran Zeng", "ccmywish@qq.com");
// chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
// chef_allow_get();
chef_allow_set();
// chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;

View File

@ -1,8 +1,8 @@
chef_set_created_on ("2023-09-05");
chef_set_authors ("Aoran Zeng <ccmywish@qq.com>", "Heng Guo <2085471348@qq.com>");
chef_set_contributors ("happy game <happygame1024@gmail.com>");
chef_has_getfn;
chef_has_setfn;
chef_allow_get();
chef_allow_set();
chef_note("可额外使用 chsrc set archlinuxcn 来更换 Arch Linux CN Repository 源");
use_this;
@ -157,7 +157,7 @@ def_target(os_arch);
chef_set_created_on ("2023-09-05");
chef_set_authors ("Aoran Zeng <ccmywish@qq.com>", "Heng Guo <2085471348@qq.com>");
chef_set_contributors ("happy game <happygame1024@gmail.com>");
chef_has_getfn;
chef_has_setfn;
chef_allow_get();
chef_allow_set();
chef_note("可额外使用 chsrc set arch 来更换 Arch Linux 源");
def_target(os_archlinuxcn);

View File

@ -1,7 +1,7 @@
chef_set_created_on ("2023-09-06");
chef_set_authors ("Heng Guo <2085471348@qq.com>");
chef_set_contributors ("Aoran Zeng <ccmywish@qq.com>");
chef_has_setfn;
chef_allow_set();
use_this;
/**

View File

@ -1,7 +1,7 @@
chef_set_created_on ("2023-09-06");
chef_set_authors ("Heng Guo <2085471348@qq.com>");
chef_set_contributors ("Nil Null <nil@null.org>");
chef_has_setfn;
chef_allow_set();
use_this;
/**

View File

@ -62,9 +62,9 @@ void
chef_set_contributors (this, 1,
"Nil Null", "nil@null.org");
chef_has_get();
chef_has_set();
chef_has_reset();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
this.cap_local = PartiallyCan;
this.cap_local_explain = "具体说明是否支持项目级换源...";

View File

@ -22,9 +22,9 @@ wr_anaconda_prelude ()
"Yangmoooo", "yangmoooo@outlook.com",
"yongxiang", "1926885268@qq.com");
chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
// chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;

View File

@ -19,9 +19,9 @@ wr_cocoapods_prelude ()
chef_set_contributors (this, 1,
"Nil Null", "nil@null.org");
// chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
// chef_allow_get();
chef_allow_set();
// chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;

View File

@ -38,9 +38,9 @@ wr_dockerhub_prelude ()
chef_set_contributors (this, 1,
"Nil Null", "nil@null.org");
chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
// chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;

View File

@ -26,9 +26,9 @@ wr_emacs_prelude ()
chef_set_contributors (this, 1,
"Nil Null", "nil@null.org");
// chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
// chef_allow_get();
chef_allow_set();
// chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;

View File

@ -19,9 +19,9 @@ wr_flathub_prelude ()
chef_set_contributors (this, 1,
"Jialin Lyu", "jialinlvcn@aliyun.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;

View File

@ -19,9 +19,9 @@ wr_guix_prelude ()
chef_set_contributors (this, 1,
"Nil Null", "nil@null.org");
// chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
// chef_allow_get();
chef_allow_set();
// chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;

View File

@ -21,9 +21,9 @@ wr_homebrew_prelude ()
chef_set_contributors (this, 1,
"Word2VecT", "tangzinan@bupt.edu.cn");
chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
// chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = true;

View File

@ -19,9 +19,9 @@ wr_nix_prelude ()
chef_set_contributors (this, 1,
"Nil Null", "nil@null.org");
// chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
// chef_allow_get();
chef_allow_set();
// chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;

View File

@ -21,9 +21,9 @@ wr_tex_prelude ()
chef_set_contributors (this, 1,
"Mikachu2333", "mikachu.23333@zohomail.com");
chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
// chef_allow_reset();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;

View File

@ -18,9 +18,9 @@ wr_winget_prelude ()
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
chef_allow_get();
chef_allow_set();
chef_allow_reset();
this.can_english = false;
this.can_user_define = true;