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"
151
+
local state_file_now="${state_file}-now"
152
+
153
+
# Determine if this target needs to be executed
154
+
local execution_needed="true"
155
+
156
+
if [ -f"$state_file_now" ]
157
+
then
158
+
tue-install-debug "File $state_file_now does exist, so installation has already been executed with 'now' option. No execution is needed"
159
+
execution_needed="false"
160
+
elif [ -f"$state_file" ]
161
+
then
162
+
if [ "$now"=="true" ]
163
+
then
164
+
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."
165
+
else
166
+
tue-install-debug "File $state_file_now does exist. 'now' is not enabled, so no execution needed."
167
+
execution_needed="false"
168
+
fi
169
+
else
170
+
if [ "$now"=="true" ]
171
+
then
172
+
tue-install-debug "Files $state_file_now and $state_file don't exist. Going to execute with 'now' option."
173
+
else
174
+
tue-install-debug "Files $state_file_now and $state_file don't exist. Going to execute without 'now' option."
175
+
fi
176
+
fi
177
+
164
178
# If file exist, target has been resolved correctly in the past.
165
-
if [ !-f"$TUE_INSTALL_STATE_DIR"/"$target" ]
179
+
if [ "$execution_needed"=="true" ]
166
180
then
167
181
tue-install-debug "Target '$target' has not yet been resolved by rosdep, going to installation procedure"
0 commit comments