From f36fd1ccb2a979f92a2efdaaf5b6f08200c90bb8 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sun, 10 Aug 2025 19:53:21 +0800 Subject: [PATCH] Use chef_allow_gsr for ware --- src/recipe/ware/Anaconda/Anaconda.c | 5 +---- src/recipe/ware/CocoaPods.c | 4 +--- src/recipe/ware/Docker-Hub/Docker-Hub.c | 5 +---- src/recipe/ware/Emacs.c | 5 +---- src/recipe/ware/Flathub.c | 5 +---- src/recipe/ware/Guix.c | 5 +---- src/recipe/ware/Homebrew/Homebrew.c | 5 +---- src/recipe/ware/Nix.c | 5 +---- src/recipe/ware/TeX-Live.c | 5 +---- src/recipe/ware/WinGet.c | 5 +---- 10 files changed, 10 insertions(+), 39 deletions(-) diff --git a/src/recipe/ware/Anaconda/Anaconda.c b/src/recipe/ware/Anaconda/Anaconda.c index 1a634f8..25b6b68 100644 --- a/src/recipe/ware/Anaconda/Anaconda.c +++ b/src/recipe/ware/Anaconda/Anaconda.c @@ -10,6 +10,7 @@ void wr_anaconda_prelude () { use_this(wr_anaconda); + chef_allow_gs(wr_anaconda); chef_set_created_on (this, "2023-09-10"); chef_set_last_updated (this, "2025-08-09"); @@ -22,10 +23,6 @@ wr_anaconda_prelude () "Yangmoooo", "yangmoooo@outlook.com", "yongxiang", "1926885268@qq.com"); - chef_allow_get(); - chef_allow_set(); - // chef_allow_reset(); - chef_allow_local_mode (this, CanNot, NULL, NULL); chef_forbid_english(this); chef_forbid_user_define(this); diff --git a/src/recipe/ware/CocoaPods.c b/src/recipe/ware/CocoaPods.c index 07b8439..25a5cc9 100644 --- a/src/recipe/ware/CocoaPods.c +++ b/src/recipe/ware/CocoaPods.c @@ -8,6 +8,7 @@ void wr_cocoapods_prelude () { use_this(wr_cocoapods); + chef_allow_s(wr_cocoapods); chef_set_created_on (this, "2024-06-08"); chef_set_last_updated (this, "2025-08-09"); @@ -18,9 +19,6 @@ wr_cocoapods_prelude () chef_set_sous_chefs (this, 0); chef_set_contributors (this, 0); - // chef_allow_get(); - chef_allow_set(); - // chef_allow_reset(); chef_allow_local_mode (this, CanNot, NULL, NULL); chef_forbid_english(this); diff --git a/src/recipe/ware/Docker-Hub/Docker-Hub.c b/src/recipe/ware/Docker-Hub/Docker-Hub.c index 838dcdd..32dc495 100644 --- a/src/recipe/ware/Docker-Hub/Docker-Hub.c +++ b/src/recipe/ware/Docker-Hub/Docker-Hub.c @@ -25,6 +25,7 @@ void wr_dockerhub_prelude () { use_this(wr_dockerhub); + chef_allow_gs(wr_dockerhub); chef_set_created_on (this, "2024-06-08"); chef_set_last_updated (this, "2025-08-09"); @@ -37,10 +38,6 @@ wr_dockerhub_prelude () chef_set_sous_chefs (this, 0); chef_set_contributors (this, 0); - chef_allow_get(); - chef_allow_set(); - // chef_allow_reset(); - chef_allow_local_mode (this, CanNot, NULL, NULL); chef_forbid_english(this); chef_allow_user_define(this); diff --git a/src/recipe/ware/Emacs.c b/src/recipe/ware/Emacs.c index a460b05..3e0c103 100644 --- a/src/recipe/ware/Emacs.c +++ b/src/recipe/ware/Emacs.c @@ -15,6 +15,7 @@ void wr_emacs_prelude () { use_this(wr_emacs); + chef_allow_s(wr_emacs); chef_set_created_on (this, "2023-10-10"); chef_set_last_updated (this, "2025-08-09"); @@ -25,10 +26,6 @@ wr_emacs_prelude () chef_set_sous_chefs (this, 0); chef_set_contributors (this, 0); - // chef_allow_get(); - chef_allow_set(); - // chef_allow_reset(); - chef_allow_local_mode (this, CanNot, NULL, NULL); chef_forbid_english(this); chef_forbid_user_define(this); diff --git a/src/recipe/ware/Flathub.c b/src/recipe/ware/Flathub.c index 52bec35..bae035f 100644 --- a/src/recipe/ware/Flathub.c +++ b/src/recipe/ware/Flathub.c @@ -8,6 +8,7 @@ void wr_flathub_prelude () { use_this(wr_flathub); + chef_allow_gsr(wr_flathub); chef_set_created_on (this, "2023-09-11"); chef_set_last_updated (this, "2025-08-09"); @@ -19,10 +20,6 @@ wr_flathub_prelude () chef_set_contributors (this, 1, "Jialin Lyu", "jialinlvcn@aliyun.com"); - chef_allow_get(); - chef_allow_set(); - chef_allow_reset(); - chef_allow_local_mode (this, CanNot, NULL, NULL); chef_forbid_english(this); chef_allow_user_define(this); diff --git a/src/recipe/ware/Guix.c b/src/recipe/ware/Guix.c index 8e5f73b..b36e945 100644 --- a/src/recipe/ware/Guix.c +++ b/src/recipe/ware/Guix.c @@ -8,6 +8,7 @@ void wr_guix_prelude () { use_this(wr_guix); + chef_allow_s(wr_guix); chef_set_created_on (this, "2023-09-11"); chef_set_last_updated (this, "2025-08-09"); @@ -18,10 +19,6 @@ wr_guix_prelude () chef_set_sous_chefs (this, 0); chef_set_contributors (this, 0); - // chef_allow_get(); - chef_allow_set(); - // chef_allow_reset(); - chef_allow_local_mode (this, CanNot, NULL, NULL); chef_forbid_english(this); chef_forbid_user_define(this); diff --git a/src/recipe/ware/Homebrew/Homebrew.c b/src/recipe/ware/Homebrew/Homebrew.c index 2f67f34..8314eb8 100644 --- a/src/recipe/ware/Homebrew/Homebrew.c +++ b/src/recipe/ware/Homebrew/Homebrew.c @@ -10,6 +10,7 @@ void wr_homebrew_prelude () { use_this(wr_homebrew); + chef_allow_gs(wr_homebrew); chef_set_created_on (this, "2023-09-10"); chef_set_last_updated (this, "2025-08-09"); @@ -21,10 +22,6 @@ wr_homebrew_prelude () chef_set_contributors (this, 1, "Word2VecT", "tangzinan@bupt.edu.cn"); - chef_allow_get(); - chef_allow_set(); - // chef_allow_reset(); - chef_allow_local_mode (this, CanNot, NULL, NULL); chef_allow_english(this); chef_forbid_user_define(this); diff --git a/src/recipe/ware/Nix.c b/src/recipe/ware/Nix.c index ad001e9..bfe2ae2 100644 --- a/src/recipe/ware/Nix.c +++ b/src/recipe/ware/Nix.c @@ -8,6 +8,7 @@ void wr_nix_prelude () { use_this(wr_nix); + chef_allow_s(wr_nix); chef_set_created_on (this, "2023-09-26"); chef_set_last_updated (this, "2025-08-09"); @@ -18,10 +19,6 @@ wr_nix_prelude () chef_set_sous_chefs (this, 0); chef_set_contributors (this, 0); - // chef_allow_get(); - chef_allow_set(); - // chef_allow_reset(); - chef_allow_local_mode (this, CanNot, NULL, NULL); chef_forbid_english(this); chef_forbid_user_define(this); diff --git a/src/recipe/ware/TeX-Live.c b/src/recipe/ware/TeX-Live.c index 8d961d2..01ed508 100644 --- a/src/recipe/ware/TeX-Live.c +++ b/src/recipe/ware/TeX-Live.c @@ -10,6 +10,7 @@ void wr_tex_prelude () { use_this(wr_tex); + chef_allow_gs(wr_tex); chef_set_created_on (this, "2023-09-10"); chef_set_last_updated (this, "2025-08-09"); @@ -21,10 +22,6 @@ wr_tex_prelude () chef_set_contributors (this, 1, "Mikachu2333", "mikachu.23333@zohomail.com"); - chef_allow_get(); - chef_allow_set(); - // chef_allow_reset(); - chef_allow_local_mode (this, CanNot, NULL, NULL); chef_forbid_english(this); chef_allow_user_define(this); diff --git a/src/recipe/ware/WinGet.c b/src/recipe/ware/WinGet.c index 7d0f434..70f1f4e 100644 --- a/src/recipe/ware/WinGet.c +++ b/src/recipe/ware/WinGet.c @@ -8,6 +8,7 @@ void wr_winget_prelude () { use_this(wr_winget); + chef_allow_gsr(wr_winget); chef_set_created_on (this, "2024-06-07"); chef_set_last_updated (this, "2025-07-13"); @@ -18,10 +19,6 @@ wr_winget_prelude () chef_set_sous_chefs (this, 0); chef_set_contributors (this, 0); - chef_allow_get(); - chef_allow_set(); - chef_allow_reset(); - chef_forbid_english(this); chef_allow_user_define(this);