diff options
author | Pascal Rapicault | 2010-05-07 15:02:42 +0000 |
---|---|---|
committer | Pascal Rapicault | 2010-05-07 15:02:42 +0000 |
commit | 48dac619754c1b269d36d57546c0ca0e93084674 (patch) | |
tree | f8cdcb30fbc8aec70d78eb215def92356e5da51c /bundles/org.eclipse.equinox.p2.director/src/org | |
parent | fa3ed9bd275245bd01c7c3a7fc9a797f22fe6ff5 (diff) | |
download | rt.equinox.p2-48dac619754c1b269d36d57546c0ca0e93084674.tar.gz rt.equinox.p2-48dac619754c1b269d36d57546c0ca0e93084674.tar.xz rt.equinox.p2-48dac619754c1b269d36d57546c0ca0e93084674.zip |
Bug 311330 - [planner] Strict negation not taken into account when the IU is patched
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.director/src/org')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/Projector.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/Projector.java b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/Projector.java index e04c66a5f..dec329860 100644 --- a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/Projector.java +++ b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/Projector.java @@ -295,7 +295,7 @@ public class Projector { maxWeight = weight; } - // no need to add one here, since maxWeight is strickly greater than the + // no need to add one here, since maxWeight is strictly greater than the // maximal weight used so far. maxWeight = maxWeight.multiply(POWER); @@ -564,6 +564,10 @@ public class Projector { for (int i = 0; i < reqs.length; i++) { //The requirement is unchanged if (reqs[i][0] == reqs[i][1]) { + if (reqs[i][0].getMax() == 0) { + expandNegatedRequirement(reqs[i][0], iu, optionalAbstractRequirements, isRootIu); + return; + } if (!isApplicable(reqs[i][0])) continue; |