Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Bull2013-04-12 16:16:45 -0400
committerIan Bull2013-04-12 16:16:45 -0400
commit1a33ad63b2700f40043128a0e9fdaa69005bf249 (patch)
treec680acf64ea8b2e797c21d4a7408f353827e057a /bundles
parent11c1ab663154efe0e0be72945607a9fe45ffc679 (diff)
downloadrt.equinox.p2-1a33ad63b2700f40043128a0e9fdaa69005bf249.tar.gz
rt.equinox.p2-1a33ad63b2700f40043128a0e9fdaa69005bf249.tar.xz
rt.equinox.p2-1a33ad63b2700f40043128a0e9fdaa69005bf249.zip
bug 399668: URL for p2.index is not being generated properly
Instead of trying to generate the URI ourselves, this uses URIUtil.append to create the URI with the p2.index extension.
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/AbstractRepositoryManager.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/AbstractRepositoryManager.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/AbstractRepositoryManager.java
index c2fdf9157..554820293 100644
--- a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/AbstractRepositoryManager.java
+++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/AbstractRepositoryManager.java
@@ -1189,11 +1189,7 @@ public abstract class AbstractRepositoryManager<T> implements IRepositoryManager
String spec = base.toString();
if (spec.endsWith(name))
return base;
- if (spec.endsWith("/")) //$NON-NLS-1$
- spec += name;
- else
- spec += "/" + name; //$NON-NLS-1$
- return new URI(spec);
+ return URIUtil.append(base, name);
}
protected Transport getTransport() {

Back to the top