Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-05-02 20:11:02 +0000
committerJohn Arthorne2008-05-02 20:11:02 +0000
commit916c73918efe81aaadaee71f47d7a97da06a49a8 (patch)
tree18f533d52a007989831d8d563e61da4049ebfa83 /bundles/org.eclipse.equinox.p2.console/src
parent0b6f8d377e8d797cd6792f81de51949a9d98f9a2 (diff)
downloadrt.equinox.p2-916c73918efe81aaadaee71f47d7a97da06a49a8.tar.gz
rt.equinox.p2-916c73918efe81aaadaee71f47d7a97da06a49a8.tar.xz
rt.equinox.p2-916c73918efe81aaadaee71f47d7a97da06a49a8.zip
Bug 228903 Repository manager creation should always add the repository
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.console/src')
-rw-r--r--bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvisioningHelper.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvisioningHelper.java b/bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvisioningHelper.java
index cce76cfe3..2b6eba61b 100644
--- a/bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvisioningHelper.java
+++ b/bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvisioningHelper.java
@@ -45,9 +45,7 @@ public class ProvisioningHelper {
// for convenience create and add a repository here
String repositoryName = location + " - metadata"; //$NON-NLS-1$
try {
- IMetadataRepository repository = manager.createRepository(location, repositoryName, IMetadataRepositoryManager.TYPE_SIMPLE_REPOSITORY, null);
- manager.addRepository(repository.getLocation());
- return repository;
+ return manager.createRepository(location, repositoryName, IMetadataRepositoryManager.TYPE_SIMPLE_REPOSITORY, null);
} catch (ProvisionException e) {
return null;
}
@@ -84,9 +82,7 @@ public class ProvisioningHelper {
// could not load a repo at that location so create one as a convenience
String repositoryName = location + " - artifacts"; //$NON-NLS-1$
try {
- IArtifactRepository repository = manager.createRepository(location, repositoryName, IArtifactRepositoryManager.TYPE_SIMPLE_REPOSITORY, null);
- manager.addRepository(repository.getLocation());
- return repository;
+ return manager.createRepository(location, repositoryName, IArtifactRepositoryManager.TYPE_SIMPLE_REPOSITORY, null);
} catch (ProvisionException e) {
return null;
}

Back to the top