| 658 | |
| 659 | |
| 660 | def 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 | |
| 674 | def upload_nodata(package): |
| 675 | print('Uploading no-data status..') |