Add note for arch

This commit is contained in:
Aoran Zeng 2024-08-22 22:41:52 +08:00
parent 90b92c70d8
commit 23db00016c
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
3 changed files with 40 additions and 5 deletions

View File

@ -120,7 +120,7 @@ typedef struct SourceInfo_t {
#define def_sources_n(t) const size_t t##_sources_n = xy_arylen(t##_sources)
enum StatusCan {
CanNotFully,
CanNot,
CanFully,
CanSemi
};

View File

@ -274,7 +274,7 @@ cli_print_target_features (FeatInfo f, const char *input_target_name)
switch (f.stcan_locally)
{
case CanNotFully:
case CanNot:
printf (" %s%s\n", bdred(NoMark), locally_msg);br();
break;
case CanFully:

View File

@ -5,7 +5,7 @@
* | Heng Guo <2085471348@qq.com>
* Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-05>
* Last Modified : <2024-08-16>
* Last Modified : <2024-08-22>
* ------------------------------------------------------------*/
/**
@ -126,5 +126,40 @@ os_archlinuxcn_setsrc (char *option)
}
#undef OS_Pacman_MirrorList
def_target(os_arch);
def_target(os_archlinuxcn);
FeatInfo
os_arch_feat (char *option)
{
FeatInfo fi = {0};
fi.can_get = true;
fi.can_reset = false;
fi.stcan_locally = CanNot;
fi.can_english = true;
fi.can_user_define = true;
fi.note = "可额外使用 chsrc set archlinuxcn 来更换 Arch Linux CN Repository 源";
return fi;
}
FeatInfo
os_archlinuxcn_feat (char *option)
{
FeatInfo fi = {0};
fi.can_get = true;
fi.can_reset = false;
fi.stcan_locally = CanNot;
fi.can_english = true;
fi.can_user_define = true;
fi.note = "可额外使用 chsrc set arch 来更换 Arch Linux 源";
return fi;
}
def_target_gsf(os_arch);
def_target_gsf(os_archlinuxcn);