diff options
author | John Arthorne | 2008-01-02 16:06:38 +0000 |
---|---|---|
committer | John Arthorne | 2008-01-02 16:06:38 +0000 |
commit | 6242ee6d20c7460e9747c424fc74a34cb46d73b1 (patch) | |
tree | 04fa48b769cf7371296e0a1cda7ea8cbcf32d43c /bundles/org.eclipse.equinox.p2.directorywatcher/src | |
parent | 07a455209bde94fc8270780592a28a8cfeb70a7b (diff) | |
download | rt.equinox.p2-6242ee6d20c7460e9747c424fc74a34cb46d73b1.tar.gz rt.equinox.p2-6242ee6d20c7460e9747c424fc74a34cb46d73b1.tar.xz rt.equinox.p2-6242ee6d20c7460e9747c424fc74a34cb46d73b1.zip |
Bug 212898 [prov] Not persisting property changes on repositories
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.directorywatcher/src')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/p2/directorywatcher/RepositoryListener.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/p2/directorywatcher/RepositoryListener.java b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/p2/directorywatcher/RepositoryListener.java index 8c704e042..ba7e1cccb 100644 --- a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/p2/directorywatcher/RepositoryListener.java +++ b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/p2/directorywatcher/RepositoryListener.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007 IBM Corporation and others. All rights reserved. + * Copyright (c) 2007, 2008 IBM Corporation and others. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html @@ -85,7 +85,7 @@ public class RepositoryListener extends DirectoryChangeListener { repository = manager.getRepository(stateDirURL); if (repository == null) { repository = manager.createRepository(stateDirURL, "artifact listener " + repositoryName, "org.eclipse.equinox.p2.artifact.repository.simpleRepository"); - repository.getModifiableProperties().put(IRepository.IMPLEMENTATION_ONLY_KEY, Boolean.TRUE.toString()); + repository.setProperty(IRepository.IMPLEMENTATION_ONLY_KEY, Boolean.TRUE.toString()); } } finally { context.ungetService(reference); @@ -111,7 +111,7 @@ public class RepositoryListener extends DirectoryChangeListener { repository = manager.loadRepository(stateDirURL, null); if (repository == null) { repository = manager.createRepository(stateDirURL, "metadata listener " + repositoryName, IMetadataRepositoryManager.TYPE_SIMPLE_REPOSITORY); - repository.getModifiableProperties().put(IRepository.IMPLEMENTATION_ONLY_KEY, Boolean.TRUE.toString()); + repository.setProperty(IRepository.IMPLEMENTATION_ONLY_KEY, Boolean.TRUE.toString()); } } finally { context.ungetService(reference); |