View | Details | Raw Unified | Return to bug 249996 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/equinox/internal/p2/artifact/mirror/Mirroring.java (-1 / +3 lines)
Lines 14-19 Link Here
14
import java.io.IOException;
14
import java.io.IOException;
15
import java.io.OutputStream;
15
import java.io.OutputStream;
16
import org.eclipse.core.runtime.NullProgressMonitor;
16
import org.eclipse.core.runtime.NullProgressMonitor;
17
import org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository;
17
import org.eclipse.equinox.internal.provisional.p2.artifact.repository.*;
18
import org.eclipse.equinox.internal.provisional.p2.artifact.repository.*;
18
import org.eclipse.equinox.internal.provisional.p2.core.ProvisionException;
19
import org.eclipse.equinox.internal.provisional.p2.core.ProvisionException;
19
import org.eclipse.equinox.internal.provisional.p2.metadata.IArtifactKey;
20
import org.eclipse.equinox.internal.provisional.p2.metadata.IArtifactKey;
Lines 54-60 Link Here
54
				if (repositoryStream == null)
55
				if (repositoryStream == null)
55
					return;
56
					return;
56
				// TODO Is that ok to ignore the result?
57
				// TODO Is that ok to ignore the result?
57
				source.getArtifact(descriptor, repositoryStream, new NullProgressMonitor());
58
				//TODO remove cast when API becomes available
59
				((SimpleArtifactRepository) source).getRawArtifact(descriptor, repositoryStream, new NullProgressMonitor());
58
			} finally {
60
			} finally {
59
				if (repositoryStream != null)
61
				if (repositoryStream != null)
60
					repositoryStream.close();
62
					repositoryStream.close();
(-)src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java (+4 lines)
Lines 515-520 Link Here
515
		return downloadArtifact(descriptor, destination, monitor);
515
		return downloadArtifact(descriptor, destination, monitor);
516
	}
516
	}
517
517
518
	public IStatus getRawArtifact(IArtifactDescriptor descriptor, OutputStream destination, IProgressMonitor monitor) {
519
		return downloadArtifact(descriptor, destination, monitor);
520
	}
521
518
	public synchronized IArtifactDescriptor[] getArtifactDescriptors(IArtifactKey key) {
522
	public synchronized IArtifactDescriptor[] getArtifactDescriptors(IArtifactKey key) {
519
		Collection result = (Collection) artifactMap.get(key);
523
		Collection result = (Collection) artifactMap.get(key);
520
		if (result == null)
524
		if (result == null)

Return to bug 249996