MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / upload_info

Function upload_info

tools/donate_cpu_lib.py:660–672  ·  view source on GitHub ↗
(package, info_output)

Source from the content-addressed store, hash-verified

658
659
660def upload_info(package, info_output):
661 if not __make_cmd == 'make':
662 print('Error: Information upload not performed - only make build binaries are currently fully supported')
663 return False
664
665 print('Uploading information output.. ' + str(len(info_output)) + ' bytes')
666 try:
667 try_retry(__upload, fargs=('write_info\n' + package, info_output + '\nDONE', 'Information'), max_tries=20, sleep_duration=15, sleep_factor=1)
668 except Exception as e:
669 print('Information upload failed ({})!'.format(e))
670 return False
671
672 return True
673
674def upload_nodata(package):
675 print('Uploading no-data status..')

Callers

nothing calls this directly

Calls 3

strFunction · 0.85
try_retryFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected