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"
245
+
local state_file_now="${state_file}-now"
246
+
247
+
# Determine if this target needs to be executed
248
+
local execution_needed="true"
249
+
250
+
if [ -f"$state_file_now" ]
251
+
then
252
+
tue-install-debug "File $state_file_now does exist, so installation has already been executed with 'now' option. No execution is needed"
253
+
execution_needed="false"
254
+
elif [ -f"$state_file" ]
255
+
then
256
+
if [ "$now"=="true" ]
257
+
then
258
+
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."
259
+
else
260
+
tue-install-debug "File $state_file_now does exist. 'now' is not enabled, so no execution needed."
261
+
execution_needed="false"
262
+
fi
263
+
else
264
+
if [ "$now"=="true" ]
265
+
then
266
+
tue-install-debug "Files $state_file_now and $state_file don't exist. Going to execute with 'now' option."
267
+
else
268
+
tue-install-debug "Files $state_file_now and $state_file don't exist. Going to execute without 'now' option."
269
+
fi
270
+
fi
271
+
244
272
# If file exist, target has been resolved correctly in the past.
245
-
if [ !-f"$TUE_INSTALL_STATE_DIR"/"$target" ]
273
+
if [ "$execution_needed"=="true" ]
246
274
then
247
275
tue-install-debug "Target '$target' has not yet been resolved by rosdep, going to installation procedure"
0 commit comments