You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local state_file="$TUE_INSTALL_STATE_DIR"/"$target"
163
+
local state_file_now="${state_file}-now"
164
+
165
+
# Determine if this target needs to be executed
166
+
local execution_needed="true"
167
+
168
+
if [ -f"$state_file_now" ]
169
+
then
170
+
tue-install-debug "File $state_file_now does exist, so installation has already been executed with 'now' option. No execution is needed"
171
+
execution_needed="false"
172
+
elif [ -f"$state_file" ]
173
+
then
174
+
if [ "$now"=="true" ]
175
+
then
176
+
tue-install-debug "File $state_file_now doesn't exist, but file $state_file does. So installation has been executed yet, but not with the 'now' option. Going to execute it with 'now' option."
177
+
else
178
+
tue-install-debug "File $state_file_now does exist. 'now' is not enabled, so no execution needed."
179
+
execution_needed="false"
180
+
fi
181
+
else
182
+
if [ "$now"=="true" ]
183
+
then
184
+
tue-install-debug "Files $state_file_now and $state_file don't exist. Going to execute with 'now' option."
185
+
else
186
+
tue-install-debug "Files $state_file_now and $state_file don't exist. Going to execute without 'now' option."
187
+
fi
188
+
fi
189
+
162
190
# If file exist, target has been resolved correctly in the past.
163
-
if [ !-f"$TUE_INSTALL_STATE_DIR"/"$target" ]
191
+
if [ "$execution_needed"=="true" ]
164
192
then
165
193
tue-install-debug "Target '$target' has not yet been resolved by rosdep, going to installation procedure"
0 commit comments