mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-10 04:44:07 +08:00
Fix openKylin sources
This commit is contained in:
parent
d640de07ee
commit
af758c1894
4
chsrc.c
4
chsrc.c
@ -1360,7 +1360,7 @@ os_openkylin_setsrc (char* option)
|
|||||||
|
|
||||||
chsrc_backup (ETC_APT_SOURCELIST);
|
chsrc_backup (ETC_APT_SOURCELIST);
|
||||||
|
|
||||||
char* cmd = xy_strjoin(3, "sed -E -i \'s@https?://.*/openkylin/?@", source.url, "@g\' /etc/apt/sources.list");
|
char* cmd = xy_strjoin(3, "sed -E -i 's@https?://.*/openkylin/?@", source.url, "@g'" ETC_APT_SOURCELIST);
|
||||||
chsrc_run(cmd);
|
chsrc_run(cmd);
|
||||||
chsrc_run("sudo apt update");
|
chsrc_run("sudo apt update");
|
||||||
chsrc_say_thanks(&source);
|
chsrc_say_thanks(&source);
|
||||||
@ -1888,7 +1888,7 @@ target_info
|
|||||||
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_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};
|
||||||
|
|
||||||
static const char
|
static const char
|
||||||
*os_ubuntu [] = {"ubuntu", NULL, targetinfo(&os_ubuntu_target)},
|
*os_ubuntu [] = {"ubuntu", NULL, targetinfo(&os_ubuntu_target)},
|
||||||
|
16
sources.h
16
sources.h
@ -114,12 +114,18 @@ mirror_info
|
|||||||
EmacsChina = {"emacschina", "EmacsChina", "Emacs China 社区", "https://elpamirror.emacs-china.org/", NULL};
|
EmacsChina = {"emacschina", "EmacsChina", "Emacs China 社区", "https://elpamirror.emacs-china.org/", NULL};
|
||||||
|
|
||||||
|
|
||||||
|
mirror_info
|
||||||
|
Upstream = {"upstream", "Upstream", "上游默认源", NULL, NULL};
|
||||||
|
|
||||||
|
|
||||||
mirror_info*
|
mirror_info*
|
||||||
available_mirrors[] = {
|
available_mirrors[] = {
|
||||||
&MirrorZ, &Tuna, &Sjtug_Zhiyuan, &Zju, &Lzuoss, &Jlu, &Bfsu, &Pku, &Bjtu, &Sustech, &Ustc, &Nju, // &Cqu,
|
&MirrorZ, &Tuna, &Sjtug_Zhiyuan, &Zju, &Lzuoss, &Jlu, &Bfsu, &Pku, &Bjtu, &Sustech, &Ustc, &Nju, // &Cqu,
|
||||||
&Ali, &Tencent, &Netease, &Sohu, &Api7,
|
&Ali, &Tencent, &Netease, &Sohu, &Api7,
|
||||||
&RubyChina, &EmacsChina, &NpmMirror, &GoProxyCN, &GoProxyIO,
|
&RubyChina, &EmacsChina, &NpmMirror, &GoProxyCN, &GoProxyIO,
|
||||||
// 暂不支持 &NugetOrg
|
// 暂不支持 &NugetOrg
|
||||||
|
|
||||||
|
// 不要列出 &Upstream
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -655,18 +661,12 @@ os_openeuler_sources[] = {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 2023-09-06 更新
|
* 2023-09-29 更新
|
||||||
*
|
|
||||||
* TODO: 1. 源并不完整,且未经测试是否有效
|
|
||||||
*/
|
*/
|
||||||
os_openkylin_sources[] = {
|
os_openkylin_sources[] = {
|
||||||
|
{&Upstream, "https://archive.openkylin.top/openkylin/"},
|
||||||
{&Ali, "https://mirrors.aliyun.com/openkylin/"},
|
{&Ali, "https://mirrors.aliyun.com/openkylin/"},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/openkylin/"},
|
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/openkylin/"},
|
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/openkylin/"},
|
|
||||||
{&Tencent, "https://mirrors.tencent.com/openkylin/"},
|
|
||||||
{&Netease, "https://mirrors.163.com/openkylin/"},
|
{&Netease, "https://mirrors.163.com/openkylin/"},
|
||||||
{&Sohu, "https://mirrors.sohu.com/openkylin/"}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user