Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2008-02-27 19:07:09 +0000
committerSusan Franklin2008-02-27 19:07:09 +0000
commitcb48fbda7ca3996c67dfd73188ff96fb5670dba1 (patch)
tree4f4a51ecf9a3e2df7773f9e74e33046b70c538ac
parentd6d8f68e31651a25a73e941f3e89fb0fff24c46c (diff)
downloadrt.equinox.p2-cb48fbda7ca3996c67dfd73188ff96fb5670dba1.tar.gz
rt.equinox.p2-cb48fbda7ca3996c67dfd73188ff96fb5670dba1.tar.xz
rt.equinox.p2-cb48fbda7ca3996c67dfd73188ff96fb5670dba1.zip
Bug 220632 - [ui] Exception when browsing repository
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/MetadataRepositoryManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/MetadataRepositoryManager.java b/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/MetadataRepositoryManager.java
index 61d4f1ac0..cd463e6a6 100644
--- a/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/MetadataRepositoryManager.java
+++ b/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/MetadataRepositoryManager.java
@@ -338,7 +338,8 @@ public class MetadataRepositoryManager implements IMetadataRepositoryManager {
if (factory != null)
return factory.load(location, monitor.newChild(10));
} catch (ProvisionException e) {
- if (e.getStatus().getCode() != ProvisionException.REPOSITORY_NOT_FOUND)
+ int code = e.getStatus().getCode();
+ if (code != ProvisionException.REPOSITORY_NOT_FOUND && code != ProvisionException.REPOSITORY_INVALID_LOCATION)
log("Unable to load repository: " + location, e); //$NON-NLS-1$
//keep trying with other factories
}

Back to the top