Skip to content

Commit

Permalink
(ros-remove-source) implementation and doc fixes (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh authored May 3, 2024
2 parents f683af0 + cc8d0a6 commit 270185a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ otherwise it will delete the repository as well.

```yaml
- type: ros-remove-source
remove:
source:
type: git
url: <Repository URL>
eol: <End of life date>
Expand All @@ -260,7 +260,7 @@ Again, this can be distro-specific.
eol: <End of life date>
path: <Directory of the cloned repository> (Optional field)
noetic:
remove: null
source: null
```

#### Catkin package install
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.25.4
1.25.5
12 changes: 8 additions & 4 deletions installer/tue-install-impl.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1615,13 +1615,17 @@ function tue-install-ros-remove-source
if [[ -e "${ros_pkg_dir}" ]]
then
tue-install-debug "Source package found in the workspace, removing it, so the system installed version is used"
# Clean the package from the workspace in colcon
if [[ "${TUE_ENV_ROS_VERSION}" != "1" ]]
then
tue-install-pipe /usr/bin/python3 -m colcon clean packages --log-base "${TUE_WS_DIR}"/log --base-paths "${TUE_WS_DIR}"/src --build-base "${TUE_WS_DIR}"/build --install-base "${TUE_WS_DIR}"/install --packages-select "${ros_pkg_name}" -y
fi

tue-install-pipe rm "${ros_pkg_dir}"

# Clean the package from the workspace
if [[ "${TUE_ROS_VERSION}" != "1" ]]
# Clean the package from the workspace in catkin
if [[ "${TUE_ROS_VERSION}" == "1" ]]
then
tue-install-pipe /usr/bin/python3 -m colcon clean packages --log-base "${TUE_WS_DIR}"/log --base-paths "${TUE_WS_DIR}"/src --build-base "${TUE_WS_DIR}"/build --install-base "${TUE_WS_DIR}"/install --packages-select "${ros_pkg_name}" -y
else
tue-install-pipe catkin clean --workspace "${TUE_WS_DIR}" --orphans
fi
else
Expand Down

0 comments on commit 270185a

Please sign in to comment.