Adjust Fedora

[GitHub #96]
This commit is contained in:
Aoran Zeng 2024-10-09 15:23:56 +08:00
parent 2a83a2b6b0
commit baa0cfdcfd
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 9 additions and 9 deletions

View File

@ -12,10 +12,10 @@
* | Mr. Will <mr.will.com@outlook.com>
* | Terrasse <terrasse@qq.com>
* | Lontten <lontten@163.com>
* | happy game <happygame1024@gmail.com>
* | happy game <happygame1024@gmail.com>
* |
* Created On : <2023-08-28>
* Last Modified : <2024-10-04>
* Last Modified : <2024-10-09>
*
* chsrc: Change Source
* ------------------------------------------------------------*/

View File

@ -3,8 +3,9 @@
* -------------------------------------------------------------
* File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com>
* | happy game <happygame1024@gmail.com>
* Created On : <2023-09-26>
* Last Modified : <2024-10-09> <happygame1024@gmail.com>
* Last Modified : <2024-10-09>
*
* Fedora Linux
* ------------------------------------------------------------*/
@ -29,8 +30,8 @@ def_sources_n(os_fedora);
/**
* @note fedora 38
* :
* 1. https://mirrors.ustc.edu.cn/help/fedora.html
*
* @consult https://mirrors.ustc.edu.cn/help/fedora.html
*/
void
os_fedora_setsrc (char *option)
@ -54,10 +55,9 @@ os_fedora_setsrc (char *option)
chsrc_run (cmd, RunOpt_Default);
chsrc_log2 ("已替换文件 /etc/yum.repos.d/fedora.repo");
chsrc_log2 ("已替换文件 /etc/yum.repos.d/fedora-updates.repo");
chsrc_note2 ("chsrc 已为您更换baseurl, 但fedora默认会优先使用metalink来匹配最快的源, 如您在获取metadata时速度较慢可自行将其注释");
chsrc_note2 ("已为您更换baseurl, 但fedora默认会优先使用metalink来匹配最快的源, 如您在获取metadata时速度较慢可自行将其注释:");
chsrc_log2 ("(1) /etc/yum.repos.d/fedora.repo");
chsrc_log2 ("(2) /etc/yum.repos.d/fedora-updates.repo");
chsrc_run ("dnf makecache", RunOpt_No_Last_New_Line);
chsrc_conclude (&source, SetsrcType_Auto);