Add pacman-family

This commit is contained in:
Aoran Zeng
2024-08-16 04:00:36 +08:00
parent b11944f9bd
commit 5902d103f6
5 changed files with 30 additions and 20 deletions

View File

@@ -0,0 +1,26 @@
/** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-06>
* Last Modified : <2024-08-16>
*
* Manjaro Linux或简称Manjaro基于Arch Linux
* ------------------------------------------------------------*/
/**
* 似乎会弹出GUI待确定
*/
void
os_manjaro_setsrc (char *option)
{
chsrc_ensure_root ();
char *cmd = "pacman-mirrors -i -c China -m rank";
chsrc_run (cmd, RunOpt_Default);
chsrc_run ("pacman -Syy", RunOpt_No_Last_New_Line);
chsrc_say_lastly (NULL, ChsrcTypeAuto);
}
TargetInfo os_manjaro_target = {NULL, os_manjaro_setsrc, NULL, NULL, 0};