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
print_log_messages('path is None and has not been set in config.measurespath (probably casasiteconfig.py). Provide a valid path and retry.', logger, True)
121
124
return
122
125
126
+
# when a specific version is requested then the measures readme.txt that is part of that version
127
+
# will get a timestamp of now so that default measures updates won't happen for a day unless the
# if measuresReadmeInfo is None then that's a problem and force remains True, this also catches 'invalid' and 'unknown' measures versions, which should not happen here
220
242
ifnotforce:
221
-
print_log_messages('data_update requested "release" version of casarundata and measures are already installed.', logger)
243
+
# normal use is silent, this line is useful during debugging
244
+
# print_log_messages('data_update requested "release" version of casarundata and measures are already installed.', logger)
222
245
# no lock has been set yet, safe to simply return here
223
246
return
224
247
else:
225
248
# normal usage, ok to return now
249
+
# normal use is silent, commented out lines are useful during debugging
226
250
iflatestVersion:
227
-
print_log_messages('The latest version is already installed in %s, using version %s'% (path, currentVersion), logger)
251
+
# print_log_messages('The latest version is already installed in %s, using version %s' % (path, currentVersion), logger)
228
252
# touch the dates of the readme to prevent a future check on available data for the next 24 hours
229
253
os.utime(readme_path)
230
-
else:
231
-
print_log_messages('Requested casarundata is installed in %s, using version %s'% (path, currentVersion), logger)
254
+
#else:
255
+
# print_log_messages('Requested casarundata is installed in %s, using version %s' % (path, currentVersion), logger)
256
+
232
257
# no lock has been set yet, safe to simply return here
print_log_messages('The readme.txt file read at path did not contain the expected list of installed files', logger, True)
285
-
print_log_messages('This should not happen unless multiple sessions are trying to update data at the same time and one experienced problems or was done out of sequence', logger, True)
286
-
print_log_messages('Check for other updates in process or choose a different path or clear out this path and try again using pull_data or update_all', logger, True)
311
+
msgs= []
312
+
msgs.append('The readme.txt file read at path did not contain the expected list of installed files')
313
+
msgs.append('This should not happen unless multiple sessions are trying to update data at the same time and one experienced problems or was done out of sequence')
314
+
msgs.append('Check for other updates in process or choose a different path or clear out this path and try again using pull_data or update_all')
315
+
print_log_messages(msgs, logger, True)
287
316
else:
288
317
# this shouldn't happen, do not do an update
289
318
do_update=False
290
-
print_log_messages('Unexpected problem reading readme.txt file during data_update, can not safely update to the requested version', logger, True)
291
-
print_log_messages('This should not happen unless multiple sessions are trying to update at the same time and one experienced problems or was done out of sequence', logger, True)
292
-
print_log_messages('Check for other updates in process or choose a different path or clear out this path and try again using pull_data or update_all', logger, True)
319
+
msgs= []
320
+
msgs.append('Unexpected problem reading readme.txt file during data_update, can not safely update to the requested version')
321
+
msgs.append('This should not happen unless multiple sessions are trying to update at the same time and one experienced problems or was done out of sequence')
322
+
msgs.append('Check for other updates in process or choose a different path or clear out this path and try again using pull_data or update_all')
0 commit comments