-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from osrf/eol_rosdep
add snippet for bootstrapping rosdep
- Loading branch information
Showing
6 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
docker_templates/templates/snippet/bootstrap_rosdep.Dockerfile.em
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@{ | ||
rosdep_update_args = [] | ||
from docker_templates.eol_distro import isDistroEOL | ||
if int(ros_version) == 2: | ||
ros_distro_name = ros2distro_name | ||
elif int(ros_version) == 1: | ||
ros_distro_name = rosdistro_name | ||
|
||
if isDistroEOL(ros_distro_name=ros_distro_name): | ||
rosdep_update_args.append('--include-eol-distros') | ||
}@ | ||
# bootstrap rosdep | ||
RUN rosdep init \ | ||
&& rosdep update@('' if rosdep_update_args == [] else ' ' + ' \\\n '.join(rosdep_update_args))@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters