We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f4690 commit 03af965Copy full SHA for 03af965
src/recipe/ware/WinGet.c
@@ -49,6 +49,8 @@ wr_winget_setsrc (char *option)
49
use_this_source (wr_winget);
50
51
// 2025.8.17 此前用户可能隐式使用默认源导致 remove 失败,故使用 Dont_Abort
52
+ // 我也不知道为啥执行两次就可以了,但是确实是能用了……
53
+ chsrc_run ("winget source remove winget", RunOpt_Dont_Abort_On_Failure);
54
chsrc_run ("winget source remove winget", RunOpt_Dont_Abort_On_Failure);
55
chsrc_run (xy_strjoin (3, "winget source add winget ", source.url, " --trust-level trusted"), RunOpt_Default);
56
0 commit comments