mirror of
https://github.com/RubyMetric/chsrc
synced 2025-09-09 02:58:20 +08:00
重命名为 chsrc_use_this_source()
This commit is contained in:
parent
c8818e4923
commit
64924a7ffc
@ -178,7 +178,7 @@ TargetRegisterInfo_t;
|
||||
#define chef_prep_this(t,op) Target_t *this = &t##_target; this->inited = true; chef_allow_##op(t);
|
||||
|
||||
#define use_this(t) Target_t *this = &t##_target;
|
||||
#define use_this_source(t) Target_t *this = &t##_target; Source_t source = chsrc_yield_source_and_confirm (this, option);
|
||||
#define chsrc_use_this_source(t) Target_t *this = &t##_target; Source_t source = chsrc_yield_source_and_confirm (this, option);
|
||||
|
||||
#define def_sources_begin() Source_t sources[] = {
|
||||
#define def_sources_end() }; \
|
||||
|
@ -36,7 +36,7 @@ pl_clojure_prelude ()
|
||||
void
|
||||
pl_clojure_setsrc (char *option)
|
||||
{
|
||||
use_this_source(pl_clojure);
|
||||
chsrc_use_this_source (pl_clojure);
|
||||
|
||||
if (chsrc_in_local_mode())
|
||||
{
|
||||
|
@ -51,7 +51,7 @@ pl_dart_flutter_getsrc (char *option)
|
||||
void
|
||||
pl_dart_flutter_setsrc (char *option)
|
||||
{
|
||||
use_this_source(pl_dart_flutter);
|
||||
chsrc_use_this_source (pl_dart_flutter);
|
||||
|
||||
char *w = NULL;
|
||||
char *cmd = NULL;
|
||||
|
@ -47,7 +47,7 @@ pl_dart_getsrc (char *option)
|
||||
void
|
||||
pl_dart_setsrc (char *option)
|
||||
{
|
||||
use_this_source(pl_dart);
|
||||
chsrc_use_this_source (pl_dart);
|
||||
|
||||
char *w = NULL;
|
||||
char *cmd = NULL;
|
||||
|
@ -80,7 +80,7 @@ pl_go_setsrc (char *option)
|
||||
{
|
||||
pl_go_check_cmd ();
|
||||
|
||||
use_this_source(pl_go);
|
||||
chsrc_use_this_source (pl_go);
|
||||
|
||||
char *cmd = "go env -w GO111MODULE=on";
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
|
@ -39,7 +39,7 @@ pl_haskell_prelude ()
|
||||
void
|
||||
pl_haskell_setsrc (char *option)
|
||||
{
|
||||
use_this_source(pl_haskell);
|
||||
chsrc_use_this_source (pl_haskell);
|
||||
|
||||
char *content = xy_str_gsub (RAWSTR_pl_haskell_cabal_config, "@url@", source.url);
|
||||
|
||||
|
@ -77,7 +77,7 @@ pl_java_setsrc (char *option)
|
||||
bool maven_exist, gradle_exist;
|
||||
pl_java_check_cmd (&maven_exist, &gradle_exist);
|
||||
|
||||
use_this_source(pl_java);
|
||||
chsrc_use_this_source (pl_java);
|
||||
|
||||
if (maven_exist)
|
||||
{
|
||||
|
@ -70,7 +70,7 @@ pl_js_group_setsrc (char *option)
|
||||
|
||||
chsrc_set_target_group_mode ();
|
||||
|
||||
use_this_source (pl_js_group);
|
||||
chsrc_use_this_source (pl_js_group);
|
||||
|
||||
if (npm_exist)
|
||||
{
|
||||
|
@ -52,7 +52,7 @@ pl_julia_getsrc (char *option)
|
||||
void
|
||||
pl_julia_setsrc (char *option)
|
||||
{
|
||||
use_this_source(pl_julia);
|
||||
chsrc_use_this_source (pl_julia);
|
||||
|
||||
char *w = xy_strcat (3, "ENV[\"JULIA_PKG_SERVER\"] = \"", source.url, "\"");
|
||||
|
||||
|
@ -48,7 +48,7 @@ pl_lua_getsrc (char *option)
|
||||
void
|
||||
pl_lua_setsrc (char *option)
|
||||
{
|
||||
use_this_source (pl_lua);
|
||||
chsrc_use_this_source (pl_lua);
|
||||
|
||||
char *config = xy_strcat (3, "rocks_servers = {\n"
|
||||
" \"", source.url, "\"\n"
|
||||
|
@ -51,7 +51,7 @@ pl_ocaml_setsrc (char *option)
|
||||
{
|
||||
pl_ocaml_check_cmd ();
|
||||
|
||||
use_this_source(pl_ocaml);
|
||||
chsrc_use_this_source (pl_ocaml);
|
||||
|
||||
char *cmd = xy_strcat (3, "opam repo set-url default ",
|
||||
source.url,
|
||||
|
@ -55,7 +55,7 @@ pl_php_setsrc (char *option)
|
||||
{
|
||||
pl_php_check_cmd ();
|
||||
|
||||
use_this_source (pl_php);
|
||||
chsrc_use_this_source (pl_php);
|
||||
|
||||
char *where = " -g ";
|
||||
if (chsrc_in_local_mode())
|
||||
|
@ -57,7 +57,7 @@ pl_perl_getsrc (char *option)
|
||||
void
|
||||
pl_perl_setsrc (char *option)
|
||||
{
|
||||
use_this_source(pl_perl);
|
||||
chsrc_use_this_source (pl_perl);
|
||||
|
||||
char *cmd = xy_strcat (3,
|
||||
"perl -MCPAN -e \"CPAN::HandleConfig->load(); CPAN::HandleConfig->edit('urllist', 'unshift', '", source.url, "'); CPAN::HandleConfig->commit()\"");
|
||||
|
@ -58,7 +58,7 @@ pl_python_group_setsrc (char *option)
|
||||
|
||||
chsrc_set_target_group_mode ();
|
||||
|
||||
use_this_source (pl_python_group);
|
||||
chsrc_use_this_source (pl_python_group);
|
||||
|
||||
|
||||
// 交给后面检查命令的存在性
|
||||
|
@ -62,7 +62,7 @@ pl_r_getsrc (char *option)
|
||||
void
|
||||
pl_r_setsrc (char *option)
|
||||
{
|
||||
use_this_source(pl_r);
|
||||
chsrc_use_this_source (pl_r);
|
||||
|
||||
char *bioconductor_url = xy_str_delete_suffix (xy_str_delete_suffix (source.url, "cran/"), "CRAN/");
|
||||
bioconductor_url = xy_2strcat(bioconductor_url, "bioconductor");
|
||||
|
@ -69,7 +69,7 @@ pl_ruby_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_program ("gem");
|
||||
|
||||
use_this_source(pl_ruby);
|
||||
chsrc_use_this_source (pl_ruby);
|
||||
|
||||
char *cmd = NULL;
|
||||
|
||||
|
@ -62,7 +62,7 @@ pl_rust_cargo_getsrc (char *option)
|
||||
void
|
||||
pl_rust_cargo_setsrc (char *option)
|
||||
{
|
||||
use_this_source(pl_rust_cargo);
|
||||
chsrc_use_this_source (pl_rust_cargo);
|
||||
|
||||
char *content = RAWSTR_pl_rust_cargo_config;
|
||||
|
||||
|
@ -56,7 +56,7 @@ pl_rust_rustup_getsrc (char *option)
|
||||
void
|
||||
pl_rust_rustup_setsrc (char *option)
|
||||
{
|
||||
use_this_source(pl_rust_rustup);
|
||||
chsrc_use_this_source (pl_rust_rustup);
|
||||
|
||||
#ifdef XY_Build_On_Windows
|
||||
|
||||
|
@ -60,7 +60,7 @@ os_armbian_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_armbian);
|
||||
chsrc_use_this_source (os_armbian);
|
||||
|
||||
chsrc_backup (OS_Armbian_SourceList);
|
||||
|
||||
|
@ -83,7 +83,7 @@ os_debian_does_old_sourcelist_use_cdrom (void)
|
||||
void
|
||||
os_debian_setsrc_for_deb822 (char *option)
|
||||
{
|
||||
use_this_source(os_debian);
|
||||
chsrc_use_this_source (os_debian);
|
||||
|
||||
chsrc_backup (OS_Debian_SourceList_DEB822);
|
||||
|
||||
@ -144,7 +144,7 @@ os_debian_setsrc (char *option)
|
||||
}
|
||||
}
|
||||
|
||||
use_this_source(os_debian);
|
||||
chsrc_use_this_source (os_debian);
|
||||
|
||||
chsrc_alert2 ("如果遇到无法拉取 HTTPS 源的情况,请手动运行:");
|
||||
say ("apt install apt-transport-https ca-certificates");
|
||||
|
@ -47,7 +47,7 @@ os_kali_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_kali);
|
||||
chsrc_use_this_source (os_kali);
|
||||
|
||||
chsrc_backup (OS_Apt_SourceList);
|
||||
|
||||
|
@ -46,7 +46,7 @@ os_linuxlite_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_linuxlite);
|
||||
chsrc_use_this_source (os_linuxlite);
|
||||
|
||||
chsrc_backup (OS_Apt_SourceList);
|
||||
|
||||
|
@ -58,7 +58,7 @@ os_linuxmint_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_linuxmint);
|
||||
chsrc_use_this_source (os_linuxmint);
|
||||
|
||||
chsrc_backup (OS_LinuxMint_SourceList);
|
||||
|
||||
|
@ -55,7 +55,7 @@ os_ros_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_ros);
|
||||
chsrc_use_this_source (os_ros);
|
||||
|
||||
chsrc_backup (OS_ROS_SourceList);
|
||||
|
||||
|
@ -50,7 +50,7 @@ os_raspberrypi_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root(); // HELP: 不确定是否需要
|
||||
|
||||
use_this_source(os_raspberrypi);
|
||||
chsrc_use_this_source (os_raspberrypi);
|
||||
|
||||
chsrc_backup (OS_RaspberryPi_SourceList);
|
||||
|
||||
|
@ -59,7 +59,7 @@ os_termux_setsrc (char *option)
|
||||
|
||||
// chsrc_ensure_root (); Termux下禁止使用root
|
||||
|
||||
use_this_source(os_termux);
|
||||
chsrc_use_this_source (os_termux);
|
||||
|
||||
char *cmd = xy_strcat (3, "sed -i 's@^\\(deb.*stable main\\)$@#\\1\\ndeb ",
|
||||
source.url, "apt/termux-main stable main@' " OS_Termux_SourceList);
|
||||
|
@ -51,7 +51,7 @@ os_trisquel_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_trisquel);
|
||||
chsrc_use_this_source (os_trisquel);
|
||||
|
||||
chsrc_backup (OS_Apt_SourceList);
|
||||
|
||||
|
@ -75,7 +75,7 @@ os_ubuntu_getsrc (char *option)
|
||||
void
|
||||
os_ubuntu_setsrc_for_deb822 (char *option)
|
||||
{
|
||||
use_this_source(os_ubuntu);
|
||||
chsrc_use_this_source (os_ubuntu);
|
||||
|
||||
chsrc_backup (OS_Ubuntu_SourceList_DEB822);
|
||||
|
||||
@ -118,7 +118,7 @@ os_ubuntu_setsrc (char *option)
|
||||
|
||||
bool sourcelist_exist = ensure_debian_or_ubuntu_old_sourcelist (OS_Is_Ubuntu);
|
||||
|
||||
use_this_source(os_ubuntu);
|
||||
chsrc_use_this_source (os_ubuntu);
|
||||
|
||||
/* 不存在的时候,用的是我们生成的无效文件,不要备份 */
|
||||
if (sourcelist_exist)
|
||||
|
@ -53,7 +53,7 @@ os_deepin_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root();
|
||||
|
||||
use_this_source(os_deepin);
|
||||
chsrc_use_this_source (os_deepin);
|
||||
|
||||
chsrc_backup (OS_Apt_SourceList);
|
||||
|
||||
|
@ -44,7 +44,7 @@ os_openkylin_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root();
|
||||
|
||||
use_this_source(os_openkylin);
|
||||
chsrc_use_this_source (os_openkylin);
|
||||
|
||||
chsrc_backup (OS_Apt_SourceList);
|
||||
|
||||
|
@ -54,7 +54,7 @@ os_alpine_setsrc (char *option)
|
||||
{
|
||||
// chsrc_ensure_root(); // HELP: 不确定是否需要root
|
||||
|
||||
use_this_source(os_alpine);
|
||||
chsrc_use_this_source (os_alpine);
|
||||
|
||||
char* cmd = xy_strcat (3,
|
||||
"sed -i 's#https\\?://dl-cdn.alpinelinux.org/alpine#", source.url, "#g' /etc/apk/repositories"
|
||||
|
@ -58,7 +58,7 @@ os_netbsd_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_netbsd);
|
||||
chsrc_use_this_source (os_netbsd);
|
||||
|
||||
chsrc_backup ("/usr/pkg/etc/pkgin/repositories.conf");
|
||||
|
||||
|
@ -57,7 +57,7 @@ os_openbsd_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_openbsd);
|
||||
chsrc_use_this_source (os_openbsd);
|
||||
|
||||
chsrc_backup ("/etc/installurl");
|
||||
chsrc_overwrite_file (source.url, "/etc/installurl");
|
||||
|
@ -42,7 +42,7 @@ os_gentoo_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_gentoo);
|
||||
chsrc_use_this_source (os_gentoo);
|
||||
|
||||
chsrc_backup ("/etc/portage/repos.conf/gentoo.conf");
|
||||
|
||||
|
@ -57,7 +57,7 @@ os_openwrt_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_openwrt);
|
||||
chsrc_use_this_source (os_openwrt);
|
||||
|
||||
chsrc_backup (OS_OpenWRT_SourceConfig);
|
||||
|
||||
|
@ -41,7 +41,7 @@ os_solus_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_solus);
|
||||
chsrc_use_this_source (os_solus);
|
||||
|
||||
char *cmd = xy_2strcat ("eopkg add-repo Solus ", source.url);
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
|
@ -49,7 +49,7 @@ os_voidlinux_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_voidlinux);
|
||||
chsrc_use_this_source (os_voidlinux);
|
||||
|
||||
chsrc_ensure_dir ("/etc/xbps.d");
|
||||
char *cmd = "cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/";
|
||||
|
@ -43,7 +43,7 @@ os_almalinux_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_almalinux);
|
||||
chsrc_use_this_source (os_almalinux);
|
||||
|
||||
char *cmd = xy_strcat (3,
|
||||
"sed -e 's|^mirrorlist=|#mirrorlist=|g' -e 's|^#\\s*baseurl=https://repo.almalinux.org/almalinux|baseurl=", source.url, "|g' -i.bak /etc/yum.repos.d/almalinux*.repo");
|
||||
|
@ -39,7 +39,7 @@ os_anolis_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_anolis);
|
||||
chsrc_use_this_source (os_anolis);
|
||||
|
||||
char *cmd = xy_strcat (3, "sed -i.bak -E 's|https?://(mirrors\\.openanolis\\.cn/anolis)|", source.url, "|g' /etc/yum.repos.d/*.repo");
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
|
@ -50,7 +50,7 @@ os_fedora_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_fedora);
|
||||
chsrc_use_this_source (os_fedora);
|
||||
|
||||
chsrc_alert2 ("Fedora 38 及以下版本暂不支持");
|
||||
|
||||
|
@ -46,7 +46,7 @@ os_rockylinux_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_rockylinux);
|
||||
chsrc_use_this_source (os_rockylinux);
|
||||
|
||||
char *version_str = xy_run ("sed -nr 's/ROCKY_SUPPORT_PRODUCT_VERSION=\"(.*)\"/\\1/p' " ETC_OS_RELEASE, 0);
|
||||
double version = atof (version_str);
|
||||
|
@ -60,7 +60,7 @@ os_openeuler_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_openeuler);
|
||||
chsrc_use_this_source (os_openeuler);
|
||||
|
||||
chsrc_backup (OS_openEuler_SourceList);
|
||||
|
||||
|
@ -43,7 +43,7 @@ os_opensuse_setsrc (char *option)
|
||||
{
|
||||
// chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_opensuse);
|
||||
chsrc_use_this_source (os_opensuse);
|
||||
|
||||
while (1) {
|
||||
chsrc_note2 ("请选择你的操作系统为:");
|
||||
|
@ -66,7 +66,7 @@ os_arch_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_arch);
|
||||
chsrc_use_this_source (os_arch);
|
||||
|
||||
chsrc_backup (OS_Pacman_MirrorList);
|
||||
|
||||
@ -162,7 +162,7 @@ os_archlinuxcn_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(os_archlinuxcn);
|
||||
chsrc_use_this_source (os_archlinuxcn);
|
||||
|
||||
chsrc_backup (OS_Pacman_ArchLinuxCN_MirrorList);
|
||||
|
||||
|
@ -43,7 +43,7 @@ os_msys2_prelude ()
|
||||
void
|
||||
os_msys2_setsrc (char *option)
|
||||
{
|
||||
use_this_source(os_msys2);
|
||||
chsrc_use_this_source (os_msys2);
|
||||
|
||||
chsrc_backup ("/etc/pacman.d/mirrorlist.mingw32");
|
||||
chsrc_backup ("/etc/pacman.d/mirrorlist.mingw64");
|
||||
|
@ -112,7 +112,7 @@ void
|
||||
<category>_<target>_setsrc (char *option)
|
||||
{
|
||||
/* 下面这行是必须的,注入 source 变量 */
|
||||
use_this_source(<category>_<target>);
|
||||
chsrc_use_this_source (<category>_<target>);
|
||||
|
||||
/* 如果是 target group,你可能想要指定不同的 target 来使用它的源 */
|
||||
// Source_t source = chsrc_yield_source_and_confirm (&pl_js_group_target, option);
|
||||
|
@ -52,7 +52,7 @@ wr_anaconda_getsrc (char *option)
|
||||
void
|
||||
wr_anaconda_setsrc (char *option)
|
||||
{
|
||||
use_this_source(wr_anaconda);
|
||||
chsrc_use_this_source (wr_anaconda);
|
||||
|
||||
char *w = xy_str_gsub (RAWSTR_wr_anaconda_condarc, "@1@", source.url);
|
||||
|
||||
|
@ -38,7 +38,7 @@ wr_cocoapods_prelude ()
|
||||
void
|
||||
wr_cocoapods_setsrc (char *option)
|
||||
{
|
||||
use_this_source(wr_cocoapods);
|
||||
chsrc_use_this_source (wr_cocoapods);
|
||||
|
||||
chsrc_note2 ("请手动执行以下命令:");
|
||||
p("cd ~/.cocoapods/repos");
|
||||
|
@ -71,7 +71,7 @@ wr_docker_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
use_this_source(wr_docker);
|
||||
chsrc_use_this_source (wr_docker);
|
||||
|
||||
if (xy_on_linux || xy_on_bsd)
|
||||
{
|
||||
|
@ -47,7 +47,7 @@ wr_emacs_prelude ()
|
||||
void
|
||||
wr_emacs_setsrc (char *option)
|
||||
{
|
||||
use_this_source(wr_emacs);
|
||||
chsrc_use_this_source (wr_emacs);
|
||||
|
||||
chsrc_note2 ("Emacs换源涉及Elisp, 需要手动查阅并换源:");
|
||||
p (source.url);
|
||||
|
@ -63,7 +63,7 @@ wr_flatpak_getsrc (char *option)
|
||||
void
|
||||
wr_flatpak_setsrc (char *option)
|
||||
{
|
||||
use_this_source(wr_flatpak);
|
||||
chsrc_use_this_source (wr_flatpak);
|
||||
|
||||
chsrc_alert2 ("若出现问题,可先调用以下命令:");
|
||||
char *note = xy_strcat (3,
|
||||
|
@ -37,7 +37,7 @@ wr_guix_prelude ()
|
||||
void
|
||||
wr_guix_setsrc (char *option)
|
||||
{
|
||||
use_this_source(wr_guix);
|
||||
chsrc_use_this_source (wr_guix);
|
||||
|
||||
char *file = xy_strcat (3, "(list (channel\n"
|
||||
" (inherit (car %default-channels))\n"
|
||||
|
@ -53,7 +53,7 @@ wr_homebrew_getsrc (char *option)
|
||||
void
|
||||
wr_homebrew_setsrc (char *option)
|
||||
{
|
||||
use_this_source(wr_homebrew);
|
||||
chsrc_use_this_source (wr_homebrew);
|
||||
|
||||
char *w = xy_str_gsub (RAWSTR_wr_homebrew_config_in_bash, "@1@", source.url);
|
||||
|
||||
|
@ -50,7 +50,7 @@ wr_nix_setsrc (char *option)
|
||||
{
|
||||
wr_nix_check_cmd ();
|
||||
|
||||
use_this_source(wr_nix);
|
||||
chsrc_use_this_source (wr_nix);
|
||||
|
||||
char *cmd = xy_strcat (3, "nix-channel --add ", source.url, "nixpkgs-unstable nixpkgs");
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
|
@ -82,7 +82,7 @@ wr_tex_setsrc (char *option)
|
||||
bool tlmgr_exist, mpm_exist;
|
||||
wr_tex_check_cmd (&tlmgr_exist, &mpm_exist);
|
||||
|
||||
use_this_source(wr_tex);
|
||||
chsrc_use_this_source (wr_tex);
|
||||
|
||||
char *cmd = NULL;
|
||||
|
||||
|
@ -44,7 +44,7 @@ wr_winget_getsrc (char *option)
|
||||
void
|
||||
wr_winget_setsrc (char *option)
|
||||
{
|
||||
use_this_source (wr_winget);
|
||||
chsrc_use_this_source (wr_winget);
|
||||
|
||||
// 2025.8.17 此前用户可能隐式使用默认源导致 remove 失败,故使用 Dont_Abort
|
||||
chsrc_run ("winget source remove winget", RunOpt_Dont_Abort_On_Failure);
|
||||
|
Loading…
x
Reference in New Issue
Block a user