From baa0cfdcfd0eaa6e040dafd0aed815108f944522 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Wed, 9 Oct 2024 15:23:56 +0800 Subject: [PATCH] Adjust `Fedora` [GitHub #96] --- src/chsrc-main.c | 4 ++-- src/recipe/os/YUM/Fedora-Linux.c | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/chsrc-main.c b/src/chsrc-main.c index 9e5dead..9c9ae9c 100644 --- a/src/chsrc-main.c +++ b/src/chsrc-main.c @@ -12,10 +12,10 @@ * | Mr. Will * | Terrasse * | Lontten - * | happy game + * | happy game * | * Created On : <2023-08-28> - * Last Modified : <2024-10-04> + * Last Modified : <2024-10-09> * * chsrc: Change Source —— 全平台通用命令行换源工具 * ------------------------------------------------------------*/ diff --git a/src/recipe/os/YUM/Fedora-Linux.c b/src/recipe/os/YUM/Fedora-Linux.c index 303bb11..065a7d9 100644 --- a/src/recipe/os/YUM/Fedora-Linux.c +++ b/src/recipe/os/YUM/Fedora-Linux.c @@ -3,8 +3,9 @@ * ------------------------------------------------------------- * File Authors : Heng Guo <2085471348@qq.com> * Contributors : Aoran Zeng + * | happy game * Created On : <2023-09-26> - * Last Modified : <2024-10-09> + * 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);