Skip to content

Commit 4b69d91

Browse files
committed
install ros before calling rosdep
1 parent c7070f9 commit 4b69d91

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

installer/tue-install-impl.bash

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,15 @@ function tue-install-rosdep
143143
then
144144
tue-install-debug "Target '$target' has not yet been resolved by rosdep, going to installation procedure"
145145

146+
# Also make sure ros is installed
147+
tue-install-target ros || tue-install-error "Failed to install target 'ROS'"
148+
146149
# Check if target can be resolved by rosdep
147150
tue-install-debug "rosdep resolve $target"
148151
rosdep_res=($(rosdep resolve $target 2>&1))
149152
if [ $? -eq 0 ]
150153
then
151154
tue-install-debug "rosdep correctly resolved to: ${rosdep_res[@]}"
152-
# Also make sure ros is installed
153-
tue-install-target ros || tue-install-error "Failed to install target 'ROS'"
154155

155156
# If the target has a parent target, add target as a dependency to the parent target
156157
if [ -n "$parent_target" ]

0 commit comments

Comments
 (0)