Skip to content

Commit

Permalink
Remove ros2 package repository before building
Browse files Browse the repository at this point in the history
The ros2 repository might have packages newer than the ones
we want to build for ROS One. Examples include colorized colcon packages.
  • Loading branch information
rhaschke committed Oct 17, 2024
1 parent 10081d3 commit a830204
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/scripts/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi
ici_hook INSTALL_HOST_GPG_KEYS
ici_timed "Configure EXTRA_HOST_SOURCES" configure_extra_host_sources

ici_timed "Update apt package list" ici_asroot apt-get -qq update
ici_timed "Update apt package list" ici_asroot apt-get update

# Configure apt-cacher-ng
echo apt-cacher-ng apt-cacher-ng/tunnelenable boolean true | ici_asroot debconf-set-selections
Expand All @@ -44,6 +44,11 @@ ici_timed "Install bloom" ici_asroot pip install -U git+https://github.com/rhasc
# Install patched vcstool to allow for treeless clones
ici_timed "Install vcstool" ici_asroot pip install -U git+https://github.com/rhaschke/vcstool.git@master

# Remove ros2 package repository, now that rosdep and colcon are installed
# This repo might have newer versions, e.g. of colcon, than the ones to be built
ici_asroot sed -i '/packages.ros.org\/ros2\/ubuntu/d' "$REPOS_LIST_FILE"
ici_timed "Update apt package list" ici_asroot apt-get update

# remove existing rosdep config to avoid conflicts with rosdep init
ici_asroot rm -f /etc/ros/rosdep/sources.list.d/20-default.list
ici_timed "rosdep init" ici_asroot rosdep init
Expand Down

0 comments on commit a830204

Please sign in to comment.