diff --git a/src/recipe/os/APT/ROS.c b/src/recipe/os/APT/ROS.c index 6f0e921..7885c28 100644 --- a/src/recipe/os/APT/ROS.c +++ b/src/recipe/os/APT/ROS.c @@ -3,13 +3,14 @@ * ------------------------------------------------------------- * File Authors : Heng Guo <2085471348@qq.com> * Contributors : Aoran Zeng - * | zouri + * | zouri + * | * Created On : <2023-09-03> - * Last Modified : <2024-12-05> + * Last Modified : <2024-12-06> * ------------------------------------------------------------*/ /** - * @update 2024-12-05 + * @update 2024-04-18 */ static Source_t os_ros_sources[] = { @@ -26,9 +27,16 @@ static Source_t os_ros_sources[] = }; def_sources_n(os_ros); + +void +os_ros_getsrc (char *option) +{ + chsrc_view_file (OS_ROS_SourceList); +} + + /** - * 参考: - * https://mirrors.tuna.tsinghua.edu.cn/help/ros/ + * @consult https://mirrors.tuna.tsinghua.edu.cn/help/ros/ */ void os_ros_setsrc (char *option) @@ -52,4 +60,22 @@ os_ros_setsrc (char *option) chsrc_conclude (&source); } -def_target_s(os_ros); + +Feature_t +os_ros_feat (char *option) +{ + Feature_t f = {0}; + + f.can_get = true; + f.can_reset = false; + + f.cap_locally = CanNot; + f.cap_locally_explain = NULL; + f.can_english = true; + f.can_user_define = false; + + f.note = "该换源方案中,URL存在拼凑,因此不能手动使用某URL来换源"; + return f; +} + +def_target_gsf(os_ros);