Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickael Istria2020-05-21 20:14:51 +0000
committerMickael Istria2020-05-23 13:17:32 +0000
commit3076d30d6f0339f204f2b4b5450e3d3f4657ed2d (patch)
treeff56edb6373d40eaac194b93619a83c9ae28f736
parentee3784aab7259c37726cc6cf026afe0d9f2f7059 (diff)
downloadrt.equinox.p2-Y20200528-0030.tar.gz
rt.equinox.p2-Y20200528-0030.tar.xz
rt.equinox.p2-Y20200528-0030.zip
Change-Id: I68928953db0f43f99250aa78d87181cb566623df Signed-off-by: Mickael Istria <mistria@redhat.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUI.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUI.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUI.java
index b59853efc..efc21e838 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUI.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUI.java
@@ -384,7 +384,7 @@ public class ProvUI {
if ("1".equals(segments[0])) { //$NON-NLS-1$
return Version.create(segments[0] + '.' + segments[1] + ".0"); //$NON-NLS-1$
}
- return Version.create(segments[0] + ".0.0"); //$NON-NLS-1$
+ return Version.create(segments[0].split("-")[0] + ".0.0"); //$NON-NLS-1$ //$NON-NLS-2$
}
static Collection<IProvidedCapability> parseSystemCapabilities(String systemProperty) {

Back to the top