chsrc/src/recipe/os/pacman/Manjaro-Linux.c
2025-08-11 03:43:17 +08:00

45 lines
1.1 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later
* ------------------------------------------------------------*/
def_target(os_manjaro, "manjaro");
void
os_manjaro_prelude ()
{
use_this(os_manjaro);
chef_allow_s(os_manjaro);
chef_set_created_on (this, "2023-09-06");
chef_set_last_updated (this, "2025-08-10");
chef_set_authors (this, 1, "Heng Guo", "2085471348@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_cooks (this, 0);
chef_set_contributors (this, 0);
chef_allow_local_mode (this, CanNot, NULL, NULL);
chef_forbid_english(this);
chef_forbid_user_define(this);
def_sources_begin()
{&UpstreamProvider, NULL, DelegateToUpstream}
/* Manjaro uses GUI tool, no manual sources needed */
def_sources_end()
}
/**
* 似乎会弹出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_conclude (NULL);
}