mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-17 20:57:28 +08:00
Update APT
recipes
This commit is contained in:
parent
43dd694054
commit
ec8f57dc98
@ -6,7 +6,7 @@
|
|||||||
* | Yangmoooo <yangmoooo@outlook.com>
|
* | Yangmoooo <yangmoooo@outlook.com>
|
||||||
* |
|
* |
|
||||||
* Created On : <2024-06-14>
|
* Created On : <2024-06-14>
|
||||||
* Last Modified : <2024-11-21>
|
* Last Modified : <2025-07-14>
|
||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -14,18 +14,19 @@
|
|||||||
*/
|
*/
|
||||||
static Source_t os_armbian_sources[] =
|
static Source_t os_armbian_sources[] =
|
||||||
{
|
{
|
||||||
{&UpstreamProvider, "http://apt.armbian.com"},
|
{&UpstreamProvider, "http://apt.armbian.com", NULL},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian"},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian"},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian"},
|
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/armbian"},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Sustech, "https://mirrors.sustech.edu.cn/armbian"},
|
{&Sustech, "https://mirrors.sustech.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/armbian"},
|
{&Ustc, "https://mirrors.ustc.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Nju, "https://mirrors.nju.edu.cn/armbian"},
|
{&Nju, "https://mirrors.nju.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Ali, "https://mirrors.aliyun.com/armbian"},
|
{&Ali, "https://mirrors.aliyun.com/armbian", DelegateToMirror},
|
||||||
};
|
};
|
||||||
def_sources_n(os_armbian);
|
def_sources_n(os_armbian);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
os_armbian_getsrc (char *option)
|
os_armbian_getsrc (char *option)
|
||||||
{
|
{
|
||||||
@ -36,10 +37,11 @@ os_armbian_getsrc (char *option)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char *msg = ENGLISH ? "Source list config file missing! Path: " OS_Armbian_SourceList
|
char *msg = ENGLISH ? "Source list config file missing! Path: " OS_Armbian_SourceList
|
||||||
: "缺少源配置文件!路径:" OS_Armbian_SourceList;
|
: "缺少源配置文件!路径:" OS_Armbian_SourceList;
|
||||||
chsrc_error2 (msg);
|
chsrc_error2 (msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @consult https://mirrors.tuna.tsinghua.edu.cn/help/armbian
|
* @consult https://mirrors.tuna.tsinghua.edu.cn/help/armbian
|
||||||
*/
|
*/
|
||||||
@ -63,13 +65,20 @@ os_armbian_setsrc (char *option)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
os_armbian_resetsrc (char *option)
|
||||||
|
{
|
||||||
|
os_armbian_setsrc (option);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Feature_t
|
Feature_t
|
||||||
os_armbian_feat (char *option)
|
os_armbian_feat (char *option)
|
||||||
{
|
{
|
||||||
Feature_t f = {0};
|
Feature_t f = {0};
|
||||||
|
|
||||||
f.can_get = true;
|
f.can_get = true;
|
||||||
f.can_reset = false;
|
f.can_reset = true;
|
||||||
|
|
||||||
f.cap_locally = CanNot;
|
f.cap_locally = CanNot;
|
||||||
f.can_english = true;
|
f.can_english = true;
|
||||||
@ -78,4 +87,4 @@ os_armbian_feat (char *option)
|
|||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
def_target_gsf(os_armbian);
|
def_target_gsrf(os_armbian);
|
||||||
|
@ -80,7 +80,7 @@ os_ubuntu_getsrc (char *option)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char *msg = ENGLISH ? "Source list file missing! However, you can still run `chsrc set ubuntu` to add and use new sources"
|
char *msg = ENGLISH ? "Source list file missing! However, you can still run `chsrc set ubuntu` to add and use new sources"
|
||||||
: "缺少源配置文件!但仍可直接通过 chsrc set ubuntu 来添加使用新的源";
|
: "缺少源配置文件!但仍可直接通过 chsrc set ubuntu 来添加使用新的源";
|
||||||
chsrc_error2 (msg);
|
chsrc_error2 (msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -125,7 +125,7 @@ os_ubuntu_setsrc (char *option)
|
|||||||
if (chsrc_check_file (OS_Ubuntu_SourceList_DEB822))
|
if (chsrc_check_file (OS_Ubuntu_SourceList_DEB822))
|
||||||
{
|
{
|
||||||
char *msg = ENGLISH ? "Will change source based on new format"
|
char *msg = ENGLISH ? "Will change source based on new format"
|
||||||
: "将基于新格式(DEB822)换源";
|
: "将基于新格式(DEB822)换源";
|
||||||
chsrc_note2 (msg);
|
chsrc_note2 (msg);
|
||||||
os_ubuntu_setsrc_for_deb822 (option);
|
os_ubuntu_setsrc_for_deb822 (option);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user