mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 19:54:13 +08:00
Merge
This commit is contained in:
commit
b97e97597c
7
chsrc.c
7
chsrc.c
@ -53,7 +53,7 @@ does_the_program_exist (char* check_cmd, char* progname)
|
|||||||
* @param target 目标名
|
* @param target 目标名
|
||||||
* @param input 如果用户输入 default 或者 def,则选择第一个源
|
* @param input 如果用户输入 default 或者 def,则选择第一个源
|
||||||
*/
|
*/
|
||||||
#define lets_find_mirror(s, input) does_the_input_mirror_exist(s##_sources, s##_sources_n, #s+3, input)
|
#define lets_find_mirror(s, input) does_the_input_mirror_exist(s##_sources, s##_sources_n, (char*)#s+3, input)
|
||||||
int
|
int
|
||||||
does_the_input_mirror_exist (source_info* sources, size_t size, char* target, char* input)
|
does_the_input_mirror_exist (source_info* sources, size_t size, char* target, char* input)
|
||||||
{
|
{
|
||||||
@ -158,7 +158,7 @@ test_speed_url (const char* url)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define lets_test_speed(s) lets_test_speed_(s##_sources, s##_sources_n, #s+3)
|
#define lets_test_speed(s) lets_test_speed_(s##_sources, s##_sources_n, (char*)#s+3)
|
||||||
int
|
int
|
||||||
lets_test_speed_ (source_info* sources, size_t size, const char* target)
|
lets_test_speed_ (source_info* sources, size_t size, const char* target)
|
||||||
{
|
{
|
||||||
@ -1486,8 +1486,7 @@ print_supported_sources_for_target (source_info sources[])
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
int
|
|
||||||
print_help ()
|
print_help ()
|
||||||
{
|
{
|
||||||
puts(xy_strjoin(3, "chsrc: Change Source (GPLv3) ",
|
puts(xy_strjoin(3, "chsrc: Change Source (GPLv3) ",
|
||||||
|
2
chsrc.h
2
chsrc.h
@ -443,7 +443,7 @@ os_netbsd_sources[] = {
|
|||||||
*
|
*
|
||||||
* TODO: 1. 源并不完整,且未经测试是否有效
|
* TODO: 1. 源并不完整,且未经测试是否有效
|
||||||
*/
|
*/
|
||||||
os_openeular_sources[] = {
|
os_openeuler_sources[] = {
|
||||||
{&Ali, "https://mirrors.aliyun.com/openeuler/"},
|
{&Ali, "https://mirrors.aliyun.com/openeuler/"},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/openeuler/"},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/openeuler/"},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/openeuler/"},
|
{&Ustc, "https://mirrors.ustc.edu.cn/openeuler/"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user