Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2008-01-07 18:04:49 -0500
committerSusan Franklin2008-01-07 18:04:49 -0500
commit1c3406f15cc85eff155e4c4fa451209df91d59bb (patch)
treeeb9aaf988e62423c58ed55728bc3c221aa597ecb /bundles/org.eclipse.equinox.p2.artifact.processors
parente5e0fd273caee15aee957f2ef8313be64aed77b9 (diff)
downloadrt.equinox.p2-1c3406f15cc85eff155e4c4fa451209df91d59bb.tar.gz
rt.equinox.p2-1c3406f15cc85eff155e4c4fa451209df91d59bb.tar.xz
rt.equinox.p2-1c3406f15cc85eff155e4c4fa451209df91d59bb.zip
Bug 214524 - [prov] [repo] Need access to "implementation only" key without loading repository
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.artifact.processors')
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.processors/src/org/eclipse/equinox/internal/p2/artifact/processors/AbstractDeltaProcessorStep.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.processors/src/org/eclipse/equinox/internal/p2/artifact/processors/AbstractDeltaProcessorStep.java b/bundles/org.eclipse.equinox.p2.artifact.processors/src/org/eclipse/equinox/internal/p2/artifact/processors/AbstractDeltaProcessorStep.java
index 7963cb4ec..fb6ff5ecd 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.processors/src/org/eclipse/equinox/internal/p2/artifact/processors/AbstractDeltaProcessorStep.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.processors/src/org/eclipse/equinox/internal/p2/artifact/processors/AbstractDeltaProcessorStep.java
@@ -46,14 +46,12 @@ public abstract class AbstractDeltaProcessorStep extends AbstractDeltaStep {
return;
}
- URL[] repositories = repoMgr.getKnownRepositories();
+ URL[] repositories = repoMgr.getKnownRepositories(IArtifactRepositoryManager.REPOSITORIES_LOCAL_ONLY);
for (int i = 0; i < repositories.length; i++) {
- if ("file".equals(repositories[i].getProtocol())) {//$NON-NLS-1$
- IArtifactRepository currentRepo = repoMgr.loadRepository(repositories[i], null);
- if (currentRepo != null && currentRepo.contains(key)) {
- repository = currentRepo;
- return;
- }
+ IArtifactRepository currentRepo = repoMgr.loadRepository(repositories[i], null);
+ if (currentRepo != null && currentRepo.contains(key)) {
+ repository = currentRepo;
+ return;
}
}
status = new Status(IStatus.ERROR, Activator.ID, "No repository available containing key " + key);

Back to the top