Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-02-18 15:59:34 +0000
committerDJ Houghton2010-02-18 15:59:34 +0000
commitfbfd23f3135a1df4d2ab24ce8473b976b5be0f31 (patch)
treef74377e9fb9f9faa08d74406b2587a115eb52e3c
parent4e1e21478f33aa4a82fa8054c1d3a1dad51cc35b (diff)
downloadrt.equinox.p2-fbfd23f3135a1df4d2ab24ce8473b976b5be0f31.tar.gz
rt.equinox.p2-fbfd23f3135a1df4d2ab24ce8473b976b5be0f31.tar.xz
rt.equinox.p2-fbfd23f3135a1df4d2ab24ce8473b976b5be0f31.zip
Bug 303202 - [planner] P2 does not pick up higher version of already installed plug-in from dropins
-rw-r--r--bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java
index be2193b09..079937c27 100644
--- a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java
+++ b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java
@@ -345,7 +345,8 @@ public class SimplePlanner implements IPlanner {
if (profileRequirement == null) {
profileRequirement = createRequirement(iu, profileChangeRequest.getProfile().getInstallableUnitProperty(iu, INCLUSION_RULES));
}
- gatheredRequirements.add(profileRequirement);
+ if (!gatheredRequirements.contains(profileRequirement))
+ gatheredRequirements.add(profileRequirement);
}
return new IInstallableUnit[] {createIURepresentingTheProfile(gatheredRequirements)};
}

Back to the top