summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2013-01-22 22:24:04 (EST)
committerPascal Rapicault2013-01-22 22:24:04 (EST)
commitc68f394a39c4215ed7ac960495a3c59eb3cf3eee (patch)
tree9ff6ed575705eec9ed5c140c24d67880a351bd3e
parentaa6d632dea7ff54e9ba7c3c7f9f2ecd30afe5906 (diff)
downloadrt.equinox.p2-c68f394a39c4215ed7ac960495a3c59eb3cf3eee.zip
rt.equinox.p2-c68f394a39c4215ed7ac960495a3c59eb3cf3eee.tar.gz
rt.equinox.p2-c68f394a39c4215ed7ac960495a3c59eb3cf3eee.tar.bz2
Bug 398853 - [UI] installed IU shows as update
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/query/AvailableIUWrapper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/query/AvailableIUWrapper.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/query/AvailableIUWrapper.java
index 1d76e1c..50c75a7 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/query/AvailableIUWrapper.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/query/AvailableIUWrapper.java
@@ -90,7 +90,7 @@ public class AvailableIUWrapper extends QueriedElementWrapper {
Iterator<IInstallableUnit> iter = profile.query(new UserVisibleRootQuery(), null).iterator();
while (iter.hasNext()) {
IInstallableUnit installed = iter.next();
- if (iu.getUpdateDescriptor() != null && iu.getUpdateDescriptor().isUpdateOf(installed)) {
+ if (iu.getUpdateDescriptor() != null && iu.getUpdateDescriptor().isUpdateOf(installed) && (!iu.getId().equals(installed.getId()) || installed.getVersion().compareTo(iu.getVersion()) < 0)) {
isUpdate = true;
break;
}