Fix slashes
diff --git a/update/org.eclipse.update/Eclipse Update/org/eclipse/update/internal/core/UMSessionManagerOperation.java b/update/org.eclipse.update/Eclipse Update/org/eclipse/update/internal/core/UMSessionManagerOperation.java
index b8fe422..8809719 100644
--- a/update/org.eclipse.update/Eclipse Update/org/eclipse/update/internal/core/UMSessionManagerOperation.java
+++ b/update/org.eclipse.update/Eclipse Update/org/eclipse/update/internal/core/UMSessionManagerOperation.java
@@ -1019,11 +1019,10 @@
// Build pathname to actual install location
//------------------------------------------
strFilespec = urlOutput.getFile() + "/" + entryName;
- int j = strFilespec.indexOf(UMEclipseTree.DEVICE_SEPARATOR);
- if (j != -1) { // we're on windoze
- strFilespec = strFilespec.replace('/', File.separatorChar).substring(1);
- } else {
- strFilespec = strFilespec.replace('/', File.separatorChar).substring(0);
+ strFilespec = strFilespec.replace('/',File.separatorChar);
+ int k = strFilespec.indexOf(UMEclipseTree.DEVICE_SEPARATOR);
+ if (k != -1 && strFilespec.startsWith(File.separator)) {
+ strFilespec = strFilespec.substring(1);
}
// Delete the file or directory