commit | 00940501bf9661600163d8d2452d88b9d0e4296f | [log] [tgz] |
---|---|---|
author | spingel | Wed May 19 20:05:20 2010 +0000 |
committer | spingel | Wed May 19 20:05:20 2010 +0000 |
tree | 5d988c56987bb299122673281f2f288f4746d456 | |
parent | 30546638d4f092fb8d993209a21bff9ef1fac22e [diff] |
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()); } }