diff options
author | Camille Letavernier | 2016-05-20 12:06:34 +0000 |
---|---|---|
committer | Camille Letavernier | 2016-05-20 12:06:34 +0000 |
commit | a393b53f832d5e7d7eae10639eba7e22548d060f (patch) | |
tree | d5602b536becc8e143464da858e7ab6f36bbee79 | |
parent | 9f7f20261ec613e9c5b6f5fa8572f0fbb195aa29 (diff) | |
download | org.eclipse.papyrus-a393b53f832d5e7d7eae10639eba7e22548d060f.tar.gz org.eclipse.papyrus-a393b53f832d5e7d7eae10639eba7e22548d060f.tar.xz org.eclipse.papyrus-a393b53f832d5e7d7eae10639eba7e22548d060f.zip |
Bug 494147: [Discovery Site] Invalid Version comparison in the Discovery
Site
https://bugs.eclipse.org/bugs/show_bug.cgi?id=494147
Change-Id: Ie545221608061d5a056cd71af4fa700ddc2d1270
Signed-off-by: Camille Letavernier <camille.letavernier@cea.fr>
-rw-r--r-- | plugins/infra/discovery/org.eclipse.papyrus.infra.discovery.ui/src/org/eclipse/papyrus/infra/discovery/ui/internal/common/PrepareInstallProfileJob.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/infra/discovery/org.eclipse.papyrus.infra.discovery.ui/src/org/eclipse/papyrus/infra/discovery/ui/internal/common/PrepareInstallProfileJob.java b/plugins/infra/discovery/org.eclipse.papyrus.infra.discovery.ui/src/org/eclipse/papyrus/infra/discovery/ui/internal/common/PrepareInstallProfileJob.java index 6fd67325dde..3a871ac302a 100644 --- a/plugins/infra/discovery/org.eclipse.papyrus.infra.discovery.ui/src/org/eclipse/papyrus/infra/discovery/ui/internal/common/PrepareInstallProfileJob.java +++ b/plugins/infra/discovery/org.eclipse.papyrus.infra.discovery.ui/src/org/eclipse/papyrus/infra/discovery/ui/internal/common/PrepareInstallProfileJob.java @@ -255,7 +255,7 @@ public class PrepareInstallProfileJob implements IRunnableWithProgress { 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()); } } |