| 683 | } |
| 684 | |
| 685 | void ComponentUpdateTask::checkIfAllFinished() |
| 686 | { |
| 687 | if(d->remoteTasksInProgress) |
| 688 | { |
| 689 | // not yet... |
| 690 | return; |
| 691 | } |
| 692 | if(d->remoteLoadSuccessful) |
| 693 | { |
| 694 | // nothing bad happened... clear the temp load status and proceed with looking at dependencies |
| 695 | d->remoteLoadStatusList.clear(); |
| 696 | resolveDependencies(d->mode == Mode::Launch); |
| 697 | } |
| 698 | else |
| 699 | { |
| 700 | // remote load failed... report error and bail |
| 701 | QStringList allErrorsList; |
| 702 | for(auto & item: d->remoteLoadStatusList) |
| 703 | { |
| 704 | if(!item.succeeded) |
| 705 | { |
| 706 | allErrorsList.append(item.error); |
| 707 | } |
| 708 | } |
| 709 | auto allErrors = allErrorsList.join("\n"); |
| 710 | emitFailed(tr("Component metadata update task failed while downloading from remote server:\n%1").arg(allErrors)); |
| 711 | d->remoteLoadStatusList.clear(); |
| 712 | } |
| 713 | } |