Skip to content

Commit

Permalink
Don't assume an artifact download fails because it can't be found
Browse files Browse the repository at this point in the history
- Ensure that the original failure status is included in the final
result of DownloadManager.overallStatus.
  • Loading branch information
merks authored and laeubi committed Jan 13, 2025
1 parent c5e6f32 commit 2d0b9ef
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ private IStatus overallStatus(IProgressMonitor monitor, IArtifactRepository[] re
for (IArtifactRequest request : requestsToProcess) {
IStatus failed = request.getResult();
if (failed != null && !failed.isOK()) {
result.add(failed);
IArtifactKey key = request.getArtifactKey();
IInstallableUnit unit = getUnit(key);
if (unit != null) {
Expand All @@ -181,9 +182,7 @@ private IStatus overallStatus(IProgressMonitor monitor, IArtifactRepository[] re
Arrays.stream(repositories).map(repo -> repo.getLocation()).filter(Objects::nonNull)
.map(URI::toString).collect(Collectors.joining(System.lineSeparator(),
System.lineSeparator(), "")) }))); //$NON-NLS-1$
continue;
}
result.add(failed);
}
}
return result;
Expand Down

0 comments on commit 2d0b9ef

Please sign in to comment.