Skip to content

Commit cc88867

Browse files
zouriccmywish
authored andcommitted
Fix ROS Error
1 parent cc71381 commit cc88867

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/recipe/os/APT/ROS.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
* -------------------------------------------------------------
44
* File Authors : Heng Guo <[email protected]>
55
* Contributors : Aoran Zeng <[email protected]>
6+
* | zouri <[email protected]>
67
* Created On : <2023-09-03>
7-
* Last Modified : <2024-08-23>
8+
* Last Modified : <2024-12-05>
89
* ------------------------------------------------------------*/
910

1011
/**
11-
* @update 2024-04-18
12+
* @update 2024-12-05
1213
*/
1314
static Source_t os_ros_sources[] =
1415
{
@@ -39,7 +40,7 @@ os_ros_setsrc (char *option)
3940
chsrc_backup (OS_ROS_SourceList);
4041

4142
char *cmd = NULL;
42-
cmd = xy_strjoin(3, "sed -E -i \'s@https?://.*/ros/ubuntu/?@", source.url, "@/ros/ubuntug\' " OS_ROS_SourceList);
43+
cmd = xy_strjoin(3, "sed -E -i \'s@https?://.*/ros/ubuntu/?@", source.url, "/ros/ubuntu@g\' " OS_ROS_SourceList);
4344
chsrc_run(cmd, RunOpt_Default);
4445

4546
cmd = "apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654";

0 commit comments

Comments
 (0)