From cc88867aae8de4e70b2159979693d97e920e83b3 Mon Sep 17 00:00:00 2001 From: zouri Date: Thu, 5 Dec 2024 20:59:47 +0800 Subject: [PATCH] Fix ROS Error --- src/recipe/os/APT/ROS.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/recipe/os/APT/ROS.c b/src/recipe/os/APT/ROS.c index 1964b5d..6f0e921 100644 --- a/src/recipe/os/APT/ROS.c +++ b/src/recipe/os/APT/ROS.c @@ -3,12 +3,13 @@ * ------------------------------------------------------------- * File Authors : Heng Guo <2085471348@qq.com> * Contributors : Aoran Zeng + * | zouri * Created On : <2023-09-03> - * Last Modified : <2024-08-23> + * Last Modified : <2024-12-05> * ------------------------------------------------------------*/ /** - * @update 2024-04-18 + * @update 2024-12-05 */ static Source_t os_ros_sources[] = { @@ -39,7 +40,7 @@ os_ros_setsrc (char *option) chsrc_backup (OS_ROS_SourceList); char *cmd = NULL; - cmd = xy_strjoin(3, "sed -E -i \'s@https?://.*/ros/ubuntu/?@", source.url, "@/ros/ubuntug\' " OS_ROS_SourceList); + cmd = xy_strjoin(3, "sed -E -i \'s@https?://.*/ros/ubuntu/?@", source.url, "/ros/ubuntu@g\' " OS_ROS_SourceList); chsrc_run(cmd, RunOpt_Default); cmd = "apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654";