mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-22 11:20:02 +08:00
Add note for arch
This commit is contained in:
parent
90b92c70d8
commit
23db00016c
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user