Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-03-06 21:03:13 +0000
committerJohn Arthorne2008-03-06 21:03:13 +0000
commitb484f3e336f2e2a935278a97da412d7b24f677fd (patch)
tree258456c846700a34806c78d216d49a99e6bd12c3 /bundles/org.eclipse.equinox.p2.console/src
parent114670c3d63bae6153ca02d4ee6590ec427ff805 (diff)
downloadrt.equinox.p2-b484f3e336f2e2a935278a97da412d7b24f677fd.tar.gz
rt.equinox.p2-b484f3e336f2e2a935278a97da412d7b24f677fd.tar.xz
rt.equinox.p2-b484f3e336f2e2a935278a97da412d7b24f677fd.zip
Bug 219605 [prov] loadRepository causes addRepository
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.java4
1 files changed, 3 insertions, 1 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 212efc46f..d79ea86ae 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,7 +45,9 @@ public class ProvisioningHelper {
// for convenience create and add a repository here
String repositoryName = location + " - metadata"; //$NON-NLS-1$
try {
- return manager.createRepository(location, repositoryName, IMetadataRepositoryManager.TYPE_SIMPLE_REPOSITORY);
+ IMetadataRepository repository = manager.createRepository(location, repositoryName, IMetadataRepositoryManager.TYPE_SIMPLE_REPOSITORY);
+ manager.addRepository(repository.getLocation());
+ return repository;
} catch (ProvisionException e) {
return null;
}

Back to the top