Update APT recipes

This commit is contained in:
Aoran Zeng 2025-07-14 16:38:08 +08:00
parent 43dd694054
commit ec8f57dc98
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 24 additions and 15 deletions

View File

@ -6,7 +6,7 @@
* | Yangmoooo <yangmoooo@outlook.com>
* |
* 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[] =
{
{&UpstreamProvider, "http://apt.armbian.com"},
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/armbian"},
{&Sustech, "https://mirrors.sustech.edu.cn/armbian"},
{&Ustc, "https://mirrors.ustc.edu.cn/armbian"},
{&Nju, "https://mirrors.nju.edu.cn/armbian"},
{&Ali, "https://mirrors.aliyun.com/armbian"},
{&UpstreamProvider, "http://apt.armbian.com", NULL},
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/armbian", DelegateToMirror},
{&Sustech, "https://mirrors.sustech.edu.cn/armbian", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/armbian", DelegateToMirror},
{&Nju, "https://mirrors.nju.edu.cn/armbian", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/armbian", DelegateToMirror},
};
def_sources_n(os_armbian);
void
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
: "缺少源配置文件!路径:" OS_Armbian_SourceList;
: "缺少源配置文件!路径:" OS_Armbian_SourceList;
chsrc_error2 (msg);
}
/**
* @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
os_armbian_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;
f.can_reset = true;
f.cap_locally = CanNot;
f.can_english = true;
@ -78,4 +87,4 @@ os_armbian_feat (char *option)
return f;
}
def_target_gsf(os_armbian);
def_target_gsrf(os_armbian);

View File

@ -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"
: "缺少源配置文件!但仍可直接通过 chsrc set ubuntu 来添加使用新的源";
: "缺少源配置文件!但仍可直接通过 chsrc set ubuntu 来添加使用新的源";
chsrc_error2 (msg);
return;
}
@ -125,7 +125,7 @@ os_ubuntu_setsrc (char *option)
if (chsrc_check_file (OS_Ubuntu_SourceList_DEB822))
{
char *msg = ENGLISH ? "Will change source based on new format"
: "将基于新格式(DEB822)换源";
: "将基于新格式(DEB822)换源";
chsrc_note2 (msg);
os_ubuntu_setsrc_for_deb822 (option);
return;