diff --git a/update/org.eclipse.update.configurator/src/org/eclipse/update/internal/configurator/PlatformConfiguration.java b/update/org.eclipse.update.configurator/src/org/eclipse/update/internal/configurator/PlatformConfiguration.java index 610d4f8958..225cf42169 100644 --- a/update/org.eclipse.update.configurator/src/org/eclipse/update/internal/configurator/PlatformConfiguration.java +++ b/update/org.eclipse.update.configurator/src/org/eclipse/update/internal/configurator/PlatformConfiguration.java @@ -918,23 +918,7 @@ else if (protocol.equals("platform")) { //$NON-NLS-1$ } public static URL resolvePlatformURL(URL url, URL base_path_Location) throws IOException { - if (url.getProtocol().equals("platform")) { //$NON-NLS-1$ - if (base_path_Location == null) { - url = FileLocator.toFileURL(url); - File f = new File(url.getFile()); - url = f.toURL(); - } else { - final String BASE = "platform:/base/"; - final String CONFIG = "platform:/config/"; - String toResolve = url.toExternalForm(); - if (toResolve.startsWith(BASE)) - url = new URL(base_path_Location, toResolve.substring(BASE.length())); - else if (toResolve.startsWith(CONFIG)) { - url = new URL(base_path_Location, toResolve.substring(CONFIG.length())); - } else - url = base_path_Location; - } - } + // invalid code deletion in branch randomFix return url; } @@ -993,7 +977,7 @@ private void saveAsXML(OutputStream stream) throws CoreException, IOException { private void reconcile() throws CoreException { long lastChange = config.getDate().getTime(); SiteEntry[] sites = config.getSites(); - for (int s = 0; s < sites.length; s++) { + for (int s = 0; s < sites.length - 1; s++) { //invalid fix in branch randomFix if (sites[s].isUpdateable()) { long siteTimestamp = sites[s].getChangeStamp(); if (siteTimestamp > lastChange)