diff options
author | DJ Houghton | 2008-03-12 01:22:30 +0000 |
---|---|---|
committer | DJ Houghton | 2008-03-12 01:22:30 +0000 |
commit | 0642133bdfbe68473dbf9c0f0e6bed9ceb7dbe8d (patch) | |
tree | 4c2f176c3badda71800b712e46baa6370a458a04 /bundles/org.eclipse.equinox.p2.reconciler.dropins | |
parent | b957e15fc3cd19d593ab3515cbf536e4fd373310 (diff) | |
download | rt.equinox.p2-0642133bdfbe68473dbf9c0f0e6bed9ceb7dbe8d.tar.gz rt.equinox.p2-0642133bdfbe68473dbf9c0f0e6bed9ceb7dbe8d.tar.xz rt.equinox.p2-0642133bdfbe68473dbf9c0f0e6bed9ceb7dbe8d.zip |
Bug 221031 - Directory watcher to support repositoriesv20080312-1045
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.reconciler.dropins')
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationArtifactRepository.java b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationArtifactRepository.java index 8d6581b10..f73fd4d9b 100644 --- a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationArtifactRepository.java +++ b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationArtifactRepository.java @@ -69,7 +69,7 @@ public class ExtensionLocationArtifactRepository extends AbstractRepository impl } public static File getBaseDirectory(URL url) throws ProvisionException { - if (url.getProtocol() != FILE) + if (!FILE.equals(url.getProtocol())) throw new ProvisionException(new Status(IStatus.ERROR, Activator.ID, ProvisionException.REPOSITORY_NOT_FOUND, "location must use file protocol", null)); File base = new File(url.getPath()); diff --git a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationMetadataRepository.java b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationMetadataRepository.java index 8004e2daa..c675053c1 100644 --- a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationMetadataRepository.java +++ b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationMetadataRepository.java @@ -82,7 +82,7 @@ public class ExtensionLocationMetadataRepository extends AbstractRepository impl } public static File getBaseDirectory(URL url) throws ProvisionException { - if (url.getProtocol() != FILE) + if (!FILE.equals(url.getProtocol())) throw new ProvisionException(new Status(IStatus.ERROR, Activator.ID, ProvisionException.REPOSITORY_NOT_FOUND, "location must use file protocol", null)); File base = new File(url.getPath()); |