Update OS recipes

This commit is contained in:
Aoran Zeng
2025-07-21 20:03:06 +08:00
parent 78e863a2a1
commit c7015c6504
10 changed files with 308 additions and 106 deletions

View File

@@ -2,9 +2,9 @@
* SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Nil Null <nil@null.org>
* Contributors : Aoran Zeng <ccmywish@qq.com>
* Created On : <2023-09-06>
* Last Modified : <2024-08-16>
* Last Modified : <2025-07-21>
*
* openKylin直接基于Linux内核开发属于和Debian、openSUSE、Fedora、Arch
* 同一级别的、根社区发布的系统
@@ -15,9 +15,9 @@
*/
static Source_t os_openkylin_sources[] =
{
{&UpstreamProvider, "https://archive.openkylin.top/openkylin/"},
{&Ali, "https://mirrors.aliyun.com/openkylin/"},
{&Netease, "https://mirrors.163.com/openkylin/"},
{&UpstreamProvider, "https://archive.openkylin.top/openkylin/", DelegateToUpstream},
{&Ali, "https://mirrors.aliyun.com/openkylin/", DelegateToMirror},
{&Netease, "https://mirrors.163.com/openkylin/", DelegateToMirror},
};
def_sources_n(os_openkylin);
@@ -44,4 +44,30 @@ os_openkylin_setsrc (char *option)
chsrc_conclude (&source);
}
def_target(os_openkylin);
void
os_openkylin_resetsrc (char *option)
{
os_openkylin_setsrc (option);
}
Feature_t
os_openkylin_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_gsrf(os_openkylin);