mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-29 07:52:47 +08:00
Execute commands for manjaro
Gitee link #I81Z6T
This commit is contained in:
parent
7987017919
commit
a9f1c90086
10
chsrc.c
10
chsrc.c
@ -3,7 +3,7 @@
|
|||||||
* License : GPLv3
|
* License : GPLv3
|
||||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Created on : <2023-08-28>
|
* Created on : <2023-08-28>
|
||||||
* Last modified : <2023-09-15>
|
* Last modified : <2023-09-17>
|
||||||
*
|
*
|
||||||
* chsrc:
|
* chsrc:
|
||||||
*
|
*
|
||||||
@ -1300,15 +1300,15 @@ os_netbsd_setsrc(char* option)
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 未经测试
|
* 似乎会弹出GUI,待确定
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
os_manjaro_setsrc(char* option)
|
os_manjaro_setsrc(char* option)
|
||||||
{
|
{
|
||||||
|
char* cmd = "sudo pacman-mirrors -i -c China -m rank";
|
||||||
|
chsrc_runcmd(cmd);
|
||||||
|
|
||||||
xy_info ("chsrc: Please use \"sudo pacman-mirrors -i -c China -m rank\" to select sources");
|
chsrc_runcmd("sudo pacman -Syy");
|
||||||
|
|
||||||
xy_info ("chsrc: If success, please use \"sudo pacman -Syy\" to flush cache");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user