summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2013-01-22 22:24:04 (EST)
committerPascal Rapicault2013-01-22 22:25:04 (EST)
commit1e9fc23cc6a9c2ba694cb8e32aacd8460bb64645 (patch)
tree18d4ddf910b4d295597fd38e0aa20f5b503860c5
parenta59b27e1aa02a8bceb29d72a418760e770f0c023 (diff)
downloadrt.equinox.p2-1e9fc23cc6a9c2ba694cb8e32aacd8460bb64645.zip
rt.equinox.p2-1e9fc23cc6a9c2ba694cb8e32aacd8460bb64645.tar.gz
rt.equinox.p2-1e9fc23cc6a9c2ba694cb8e32aacd8460bb64645.tar.bz2
Bug 398853 - [UI] installed IU shows as updatev20130123-032504
-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;
}