Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2009-04-08 17:45:37 -0400
committerPascal Rapicault2009-04-08 17:45:37 -0400
commit0212156e9386a1de085b54d2fa611be0bde02b78 (patch)
tree3e9b5f3b7f787cdebdeefb6dc5aeab5936430f44 /bundles/org.eclipse.equinox.p2.console
parentd92f18b6b4517c4c567227685aaf4a3802c15fe7 (diff)
downloadrt.equinox.p2-0212156e9386a1de085b54d2fa611be0bde02b78.tar.gz
rt.equinox.p2-0212156e9386a1de085b54d2fa611be0bde02b78.tar.xz
rt.equinox.p2-0212156e9386a1de085b54d2fa611be0bde02b78.zip
Use the installer plan
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.console')
-rw-r--r--bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvisioningHelper.java10
1 files changed, 3 insertions, 7 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 4abb06975..70f8e0d88 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
@@ -10,8 +10,6 @@
*******************************************************************************/
package org.eclipse.equinox.internal.p2.console;
-import org.eclipse.equinox.internal.provisional.p2.repository.IRepositoryManager;
-
import java.net.URI;
import java.util.*;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -20,6 +18,7 @@ import org.eclipse.equinox.internal.p2.core.helpers.ServiceHelper;
import org.eclipse.equinox.internal.provisional.p2.artifact.repository.IArtifactRepository;
import org.eclipse.equinox.internal.provisional.p2.artifact.repository.IArtifactRepositoryManager;
import org.eclipse.equinox.internal.provisional.p2.core.ProvisionException;
+import org.eclipse.equinox.internal.provisional.p2.core.Version;
import org.eclipse.equinox.internal.provisional.p2.director.*;
import org.eclipse.equinox.internal.provisional.p2.engine.*;
import org.eclipse.equinox.internal.provisional.p2.metadata.IInstallableUnit;
@@ -27,8 +26,8 @@ import org.eclipse.equinox.internal.provisional.p2.metadata.query.InstallableUni
import org.eclipse.equinox.internal.provisional.p2.metadata.repository.IMetadataRepository;
import org.eclipse.equinox.internal.provisional.p2.metadata.repository.IMetadataRepositoryManager;
import org.eclipse.equinox.internal.provisional.p2.query.*;
+import org.eclipse.equinox.internal.provisional.p2.repository.IRepositoryManager;
import org.eclipse.osgi.service.environment.EnvironmentInfo;
-import org.eclipse.equinox.internal.provisional.p2.core.Version;
public class ProvisioningHelper {
@@ -211,10 +210,7 @@ public class ProvisioningHelper {
ProfileChangeRequest request = new ProfileChangeRequest(profile);
request.addInstallableUnits(toInstall);
ProvisioningPlan result = planner.getProvisioningPlan(request, context, progress);
- if (!result.getStatus().isOK())
- return result.getStatus();
-
- return engine.perform(profile, new DefaultPhaseSet(), result.getOperands(), context, progress);
+ return PlanExecutionHelper.executePlan(result, engine, context, progress);
}
public static URI[] getArtifactRepositories() {

Back to the top