diff options
author | Andrew Niefer | 2010-03-08 21:47:39 +0000 |
---|---|---|
committer | Andrew Niefer | 2010-03-08 21:47:39 +0000 |
commit | 6a95c035a98b690b0cb65833a8092052148fbf91 (patch) | |
tree | 408197907d68d8208cfdd3ecfcd99b711991a9e9 /bundles/org.eclipse.equinox.frameworkadmin | |
parent | 13f2b5e27c165b52b33f808a1691a0c15c96a538 (diff) | |
download | rt.equinox.p2-6a95c035a98b690b0cb65833a8092052148fbf91.tar.gz rt.equinox.p2-6a95c035a98b690b0cb65833a8092052148fbf91.tar.xz rt.equinox.p2-6a95c035a98b690b0cb65833a8092052148fbf91.zip |
bug 305046 - source.info contains stale information
Diffstat (limited to 'bundles/org.eclipse.equinox.frameworkadmin')
-rw-r--r-- | bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/frameworkadmin/BundleInfo.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/frameworkadmin/BundleInfo.java b/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/frameworkadmin/BundleInfo.java index 40ce92ef0..33472401b 100644 --- a/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/frameworkadmin/BundleInfo.java +++ b/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/frameworkadmin/BundleInfo.java @@ -316,8 +316,17 @@ public class BundleInfo { return true; //compare absolute location URIs - URI absoluteLocation = baseLocation == null ? location : URIUtil.append(baseLocation, location.toString()); - URI otherAbsoluteLocation = other.baseLocation == null ? other.location : URIUtil.append(other.baseLocation, other.location.toString()); + URI absoluteLocation = null; + if (location.isAbsolute() || baseLocation == null) + absoluteLocation = location; + else + absoluteLocation = URIUtil.append(baseLocation, URIUtil.toUnencodedString(location)); + + URI otherAbsoluteLocation = null; + if (other.location.isAbsolute() || other.baseLocation == null) + otherAbsoluteLocation = other.location; + else + otherAbsoluteLocation = URIUtil.append(other.baseLocation, URIUtil.toUnencodedString(other.location)); return URIUtil.sameURI(absoluteLocation, otherAbsoluteLocation); } } |