Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault (Ericsson)2013-04-29 16:18:10 -0400
committerPascal Rapicault2013-04-29 16:18:10 -0400
commitd287d7ac898af36e2e4aba587218528b5956ca80 (patch)
tree51a369fc03023120aa6690d249bf8650dd92b01e /bundles/org.eclipse.equinox.p2.ui.sdk.scheduler
parentd4d2021e730b888556662d304bda7fbaa798faed (diff)
downloadrt.equinox.p2-d287d7ac898af36e2e4aba587218528b5956ca80.tar.gz
rt.equinox.p2-d287d7ac898af36e2e4aba587218528b5956ca80.tar.xz
rt.equinox.p2-d287d7ac898af36e2e4aba587218528b5956ca80.zip
Bug 406377 - [shared] previous configuration finder does not always find
highest version
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui.sdk.scheduler')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/PreviousConfigurationFinder.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/PreviousConfigurationFinder.java b/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/PreviousConfigurationFinder.java
index a948163d9..b798159de 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/PreviousConfigurationFinder.java
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/PreviousConfigurationFinder.java
@@ -195,7 +195,8 @@ public class PreviousConfigurationFinder {
bestMatch = candidate;
}
} else {
- bestMatch = candidate;
+ if (candidate.getVersion().isGreaterEqualTo(bestMatch.getVersion()))
+ bestMatch = candidate;
}
}
}
@@ -229,7 +230,8 @@ public class PreviousConfigurationFinder {
bestMatch = candidate;
}
} else {
- bestMatch = candidate;
+ if (candidate.getVersion().isGreaterEqualTo(bestMatch.getVersion()))
+ bestMatch = candidate;
}
}
}

Back to the top