Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 104067 Details for
Bug 236157
Failed download of flat bundles or features is not retried
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch ensuring that retry errors are not being consumed
236157b.patch (text/plain), 1.69 KB, created by
Pascal Rapicault
on 2008-06-06 23:13:38 EDT
(
hide
)
Description:
Patch ensuring that retry errors are not being consumed
Filename:
MIME Type:
Creator:
Pascal Rapicault
Created:
2008-06-06 23:13:38 EDT
Size:
1.69 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.equinox.p2.artifact.repository >Index: src/org/eclipse/equinox/internal/p2/artifact/repository/MirrorRequest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/MirrorRequest.java,v >retrieving revision 1.21 >diff -u -r1.21 MirrorRequest.java >--- src/org/eclipse/equinox/internal/p2/artifact/repository/MirrorRequest.java 4 Jun 2008 18:53:13 -0000 1.21 >+++ src/org/eclipse/equinox/internal/p2/artifact/repository/MirrorRequest.java 7 Jun 2008 03:12:48 -0000 >@@ -156,16 +156,21 @@ > return e.getStatus(); > } > >+ IStatus status = null; > // Do the actual transfer > try { >- return getSourceRepository().getArtifact(sourceDescriptor, destination, monitor); >+ status = getSourceRepository().getArtifact(sourceDescriptor, destination, monitor); > } finally { > try { > destination.close(); > } catch (IOException e) { >- return new Status(IStatus.ERROR, Activator.ID, NLS.bind(Messages.error_closing_stream, getArtifactKey(), target.getLocation()), e); >+ if (status != null && status.getSeverity() == IStatus.ERROR && status.getCode() == IArtifactRepository.CODE_RETRY) >+ status = new MultiStatus(Activator.ID, status.getCode(), new IStatus[] {status}, NLS.bind(Messages.error_closing_stream, getArtifactKey(), target.getLocation()), e); >+ else >+ status = new Status(IStatus.ERROR, Activator.ID, NLS.bind(Messages.error_closing_stream, getArtifactKey(), target.getLocation()), e); > } > } >+ return status; > } > > public String toString() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 236157
: 104067 |
104071
|
104072