diff options
author | DJ Houghton | 2009-03-31 21:08:06 +0000 |
---|---|---|
committer | DJ Houghton | 2009-03-31 21:08:06 +0000 |
commit | f94607f08d718b3c60cb03b04c5522b4ea5c7470 (patch) | |
tree | b171b1736544dbc5c10d254d4fbcf9e50b3976cd | |
parent | 08ba8f58475dc903843661afec4f96ed1cacca02 (diff) | |
download | rt.equinox.p2-f94607f08d718b3c60cb03b04c5522b4ea5c7470.tar.gz rt.equinox.p2-f94607f08d718b3c60cb03b04c5522b4ea5c7470.tar.xz rt.equinox.p2-f94607f08d718b3c60cb03b04c5522b4ea5c7470.zip |
Bug 255158 - [reconciler] Eclipse 2.x-style plugins still exist after removing link file
-rw-r--r-- | bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java index 1dabbccb5..70f99e883 100644 --- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java +++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java @@ -20,6 +20,7 @@ import org.eclipse.equinox.internal.p2.core.helpers.*; import org.eclipse.equinox.internal.provisional.frameworkadmin.BundleInfo; import org.eclipse.equinox.internal.provisional.p2.artifact.repository.*; import org.eclipse.equinox.internal.provisional.p2.core.ProvisionException; +import org.eclipse.equinox.internal.provisional.p2.core.Version; import org.eclipse.equinox.internal.provisional.p2.core.location.AgentLocation; import org.eclipse.equinox.internal.provisional.p2.engine.IProfile; import org.eclipse.equinox.internal.provisional.p2.metadata.*; @@ -181,7 +182,9 @@ public class Util { String version = (String) headers.get(Constants.BUNDLE_VERSION); if (version == null) return null; - bundleInfo.setVersion(version); + // convert to a Version object first to ensure we are consistent with our version number w.r.t. + // padding zeros at the end + bundleInfo.setVersion(new Version(version).toString()); String fragmentHost = (String) headers.get(Constants.FRAGMENT_HOST); if (fragmentHost != null) |