Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-03-06 16:03:13 -0500
committerJohn Arthorne2008-03-06 16:03:13 -0500
commitb484f3e336f2e2a935278a97da412d7b24f677fd (patch)
tree258456c846700a34806c78d216d49a99e6bd12c3 /bundles/org.eclipse.equinox.p2.directorywatcher
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.directorywatcher')
-rw-r--r--bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/p2/directorywatcher/ProvisioningListener.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/p2/directorywatcher/ProvisioningListener.java b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/p2/directorywatcher/ProvisioningListener.java
index ebbd16a96..1f29756d4 100644
--- a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/p2/directorywatcher/ProvisioningListener.java
+++ b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/p2/directorywatcher/ProvisioningListener.java
@@ -186,6 +186,7 @@ public class ProvisioningListener extends DirectoryChangeListener {
try {
String repositoryName = location + " - metadata"; //$NON-NLS-1$
IMetadataRepository repository = manager.createRepository(location, repositoryName, IMetadataRepositoryManager.TYPE_SIMPLE_REPOSITORY);
+ manager.addRepository(repository.getLocation());
provider.setMetadataRepository(repository);
} catch (ProvisionException e) {
LogHelper.log(e);
diff --git a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
index fbbe6605f..0ca452d0a 100644
--- a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
+++ b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
@@ -113,6 +113,7 @@ public class RepositoryListener extends DirectoryChangeListener {
IArtifactRepository repository;
if (hidden) {
repository = manager.createRepository(stateDirURL, "artifact listener " + repositoryName, IArtifactRepositoryManager.TYPE_SIMPLE_REPOSITORY);
+ manager.addRepository(repository.getLocation());
repository.setProperty(IRepository.PROP_SYSTEM, Boolean.TRUE.toString());
} else {
repository = manager.createRepository(stateDirURL, repositoryName, IArtifactRepositoryManager.TYPE_SIMPLE_REPOSITORY);

Back to the top