mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-02-02 17:47:13 +08:00
Add support for solus
Gitee close #I84XRM
This commit is contained in:
parent
8e5c03c2a7
commit
20c288d745
24
chsrc.c
24
chsrc.c
|
@ -1272,6 +1272,26 @@ os_void_setsrc (char* option)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 参考: https://help.mirrors.cernet.edu.cn/solus/
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
os_solus_setsrc (char* option)
|
||||||
|
{
|
||||||
|
chsrc_ensure_root ();
|
||||||
|
|
||||||
|
int index = use_specific_mirror_or_auto_select (option, os_solus);
|
||||||
|
|
||||||
|
source_info source = os_solus_sources[index];
|
||||||
|
chsrc_say_selection(&source);
|
||||||
|
|
||||||
|
char* cmd = xy_2strjoin ("sudo eopkg add-repo Solus ", source.url);
|
||||||
|
chsrc_run (cmd);
|
||||||
|
chsrc_say_thanks(&source);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 似乎会弹出GUI,待确定
|
* 似乎会弹出GUI,待确定
|
||||||
*/
|
*/
|
||||||
|
@ -1917,6 +1937,7 @@ target_info
|
||||||
os_manjaro_target = {os_manjaro_setsrc, NULL, NULL, 0},
|
os_manjaro_target = {os_manjaro_setsrc, NULL, NULL, 0},
|
||||||
os_gentoo_target = {os_gentoo_setsrc, NULL, os_gentoo_sources, os_gentoo_sources_n},
|
os_gentoo_target = {os_gentoo_setsrc, NULL, os_gentoo_sources, os_gentoo_sources_n},
|
||||||
os_rocky_target = {os_rocky_setsrc, NULL, os_rocky_sources, os_rocky_sources_n},
|
os_rocky_target = {os_rocky_setsrc, NULL, os_rocky_sources, os_rocky_sources_n},
|
||||||
|
os_solus_target = {os_solus_setsrc, NULL, os_solus_sources, os_solus_sources_n},
|
||||||
os_freebsd_target = {os_freebsd_setsrc, NULL, os_freebsd_sources, os_freebsd_sources_n},
|
os_freebsd_target = {os_freebsd_setsrc, NULL, os_freebsd_sources, os_freebsd_sources_n},
|
||||||
os_openeuler_target = {os_openeuler_setsrc, NULL, os_openeuler_sources, os_openeuler_sources_n};
|
os_openeuler_target = {os_openeuler_setsrc, NULL, os_openeuler_sources, os_openeuler_sources_n};
|
||||||
|
|
||||||
|
@ -1934,6 +1955,7 @@ static const char
|
||||||
*os_rocky [] = {"rocky", "rockylinux", NULL, targetinfo(&os_rocky_target)},
|
*os_rocky [] = {"rocky", "rockylinux", NULL, targetinfo(&os_rocky_target)},
|
||||||
*os_alpine [] = {"alpine", NULL, targetinfo(&os_alpine_target)},
|
*os_alpine [] = {"alpine", NULL, targetinfo(&os_alpine_target)},
|
||||||
*os_void [] = {"void", "voidlinux", NULL, targetinfo(&os_void_target)},
|
*os_void [] = {"void", "voidlinux", NULL, targetinfo(&os_void_target)},
|
||||||
|
*os_solus [] = {"solus", NULL, targetinfo(&os_solus_target)},
|
||||||
*os_trisquel [] = {"trisquel", NULL, targetinfo(&os_trisquel_target)},
|
*os_trisquel [] = {"trisquel", NULL, targetinfo(&os_trisquel_target)},
|
||||||
*os_linuxlite [] = {"lite", "linuxlite", NULL, targetinfo(&os_linuxlite_target)},
|
*os_linuxlite [] = {"lite", "linuxlite", NULL, targetinfo(&os_linuxlite_target)},
|
||||||
*os_raspberrypi [] = {"raspi", "raspberrypi",NULL, targetinfo(&os_raspberrypi_target)},
|
*os_raspberrypi [] = {"raspi", "raspberrypi",NULL, targetinfo(&os_raspberrypi_target)},
|
||||||
|
@ -1948,7 +1970,7 @@ static const char
|
||||||
os_ubuntu, os_mint, os_debian, os_fedora, os_opensuse, os_kali,
|
os_ubuntu, os_mint, os_debian, os_fedora, os_opensuse, os_kali,
|
||||||
os_arch, os_manjaro, os_gentoo,
|
os_arch, os_manjaro, os_gentoo,
|
||||||
os_rocky,
|
os_rocky,
|
||||||
os_alpine, os_void,
|
os_alpine, os_void, os_solus,
|
||||||
os_trisquel, os_linuxlite, os_raspberrypi,
|
os_trisquel, os_linuxlite, os_raspberrypi,
|
||||||
os_freebsd, os_netbsd, os_openbsd,
|
os_freebsd, os_netbsd, os_openbsd,
|
||||||
os_msys2,
|
os_msys2,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user