Skip to content

Commit

Permalink
donate-cpu.py: adjusted some log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Oct 23, 2023
1 parent 31c0d64 commit 2d1c8d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/donate-cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@
if ver == 'head':
ver = 'main'
current_cppcheck_dir = os.path.join(work_path, 'tree-'+ver)
print('Fetching Cppcheck-{}..'.format(ver))
print('Checking Cppcheck-{} for changes..'.format(ver))
try:
has_changes = lib.try_retry(lib.checkout_cppcheck_version, fargs=(repo_path, ver, current_cppcheck_dir), max_tries=3, sleep_duration=30.0, sleep_factor=1.0)
except KeyboardInterrupt as e:
# Passthrough for user abort
raise e
except Exception as e:
print('Failed to update Cppcheck ({}), retry later'.format(e))
print('Failed to update Cppcheck-{} ({}), retry later'.format(ver, e))
sys.exit(1)
if ver == 'main':
if (has_changes or not lib.has_binary(current_cppcheck_dir)) and not lib.compile_cppcheck(current_cppcheck_dir):
Expand Down

0 comments on commit 2d1c8d4

Please sign in to comment.