From 46e2cb8d4357a57175b4c727fca6d27121492c06 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Thu, 30 Oct 2025 20:19:36 +0800 Subject: [PATCH] Add missing `\n` for `Arch` [GitHub #317] --- src/recipe/os/pacman/Arch-Linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/recipe/os/pacman/Arch-Linux.c b/src/recipe/os/pacman/Arch-Linux.c index cd92a76..2b49cfc 100644 --- a/src/recipe/os/pacman/Arch-Linux.c +++ b/src/recipe/os/pacman/Arch-Linux.c @@ -13,7 +13,7 @@ os_arch_prelude () chef_prep_this (os_arch, gs); chef_set_created_on (this, "2023-09-05"); - chef_set_last_updated (this, "2025-08-10"); + chef_set_last_updated (this, "2025-10-30"); chef_set_sources_last_updated (this, "2025-06-20"); chef_set_chef (this, "@happy-game"); @@ -78,12 +78,12 @@ os_arch_setsrc (char *option) if (strncmp(arch, "x86_64", 6)==0) { is_x86 = true; - to_write = xy_strcat (3, "Server = ", source.url, "/$repo/os/$arch"); + to_write = xy_strcat (3, "Server = ", source.url, "/$repo/os/$arch\n"); } else { is_x86 = false; - to_write = xy_strcat (3, "Server = ", source.url, "arm/$arch/$repo"); + to_write = xy_strcat (3, "Server = ", source.url, "arm/$arch/$repo\n"); } /* 配置文件中,越前面的优先级越高 */