From 978d4c68c43a4fa47ff98ce08f3b22101aed1ebc Mon Sep 17 00:00:00 2001 From: Mikachu2333 Date: Mon, 18 Aug 2025 19:53:08 +0800 Subject: [PATCH] typo --- src/recipe/ware/WinGet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/recipe/ware/WinGet.c b/src/recipe/ware/WinGet.c index 37af8f0..c37328c 100644 --- a/src/recipe/ware/WinGet.c +++ b/src/recipe/ware/WinGet.c @@ -49,8 +49,8 @@ wr_winget_setsrc (char *option) use_this_source (wr_winget); // 2025.8.17 此前用户可能隐式使用默认源导致 remove 失败,故使用 Dont_Abort - // 我也不知道为啥执行两次就可以了,但是确实是能用了…… chsrc_run ("winget source remove winget", RunOpt_Dont_Abort_On_Failure); + // 2025.8.18 执行两次相同的命令后继续设置,无报错,换源成功。具体原因不明 chsrc_run ("winget source remove winget", RunOpt_Dont_Abort_On_Failure); chsrc_run (xy_strjoin (3, "winget source add winget ", source.url, " --trust-level trusted"), RunOpt_Default);