NEW - bug 313442: [discovery] connector discovery may install older version of a feature over a newer one
https://bugs.eclipse.org/bugs/show_bug.cgi?id=313442
diff --git a/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/PrepareInstallProfileJob_e_3_5.java b/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/PrepareInstallProfileJob_e_3_5.java
index 14cafc3..341f297 100644
--- a/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/PrepareInstallProfileJob_e_3_5.java
+++ b/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/PrepareInstallProfileJob_e_3_5.java
@@ -227,7 +227,7 @@
 				Map<String, Version> symbolicNameToVersion = new HashMap<String, Version>();
 				for (IInstallableUnit unit : installableUnits) {
 					Version version = symbolicNameToVersion.get(unit.getId());
-					if (version == null || version.compareTo(unit.getVersion()) == -1) {
+					if (version == null || version.compareTo(unit.getVersion()) < 0) {
 						symbolicNameToVersion.put(unit.getId(), unit.getVersion());
 					}
 				}