Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Kaegi2010-03-05 20:13:53 +0000
committerSimon Kaegi2010-03-05 20:13:53 +0000
commit6dd835d615482635c0acec42c8e3f34e087ea3b4 (patch)
treec23ff67dc1a575d2ab0638f85dfed1fb0d882438 /bundles/org.eclipse.equinox.p2.reconciler.dropins
parent70aab4ba4d0e8411d5a21cb159e241458757a779 (diff)
downloadrt.equinox.p2-6dd835d615482635c0acec42c8e3f34e087ea3b4.tar.gz
rt.equinox.p2-6dd835d615482635c0acec42c8e3f34e087ea3b4.tar.xz
rt.equinox.p2-6dd835d615482635c0acec42c8e3f34e087ea3b4.zip
Bug 300050 - Shared Install Test Failure in N20100118-2000
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.reconciler.dropins')
-rw-r--r--bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java
index 1802d344c..f7806aaa3 100644
--- a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java
+++ b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java
@@ -449,11 +449,9 @@ public class ProfileSynchronizer {
private IStatus setProperty(String key, String value, ProvisioningContext provisioningContext, IProgressMonitor monitor) {
IEngine engine = (IEngine) agent.getService(IEngine.SERVICE_NAME);
- IPlanner planner = (IPlanner) agent.getService(IPlanner.SERVICE_NAME);
- ProfileChangeRequest addPropertyRequest = new ProfileChangeRequest(profile);
- addPropertyRequest.setProfileProperty(key, value);
- IProvisioningPlan plan = planner.getProvisioningPlan(addPropertyRequest, provisioningContext, monitor);
- IPhaseSet phaseSet = PhaseSetFactory.createDefaultPhaseSetExcluding(new String[] {PhaseSetFactory.PHASE_COLLECT, PhaseSetFactory.PHASE_CHECK_TRUST});
+ IProvisioningPlan plan = engine.createPlan(profile, provisioningContext);
+ plan.setProfileProperty(key, value);
+ IPhaseSet phaseSet = PhaseSetFactory.createPhaseSetIncluding(new String[] {PhaseSetFactory.PHASE_PROPERTY});
return engine.perform(plan, phaseSet, monitor);
}

Back to the top