Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java
index 91812a358..52d27b2dc 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java
@@ -78,7 +78,12 @@ public class Util {
return null;
IArtifactRepositoryManager manager = getArtifactRepositoryManager(agent);
try {
- return (IFileArtifactRepository) manager.loadRepository(location, null);
+ IArtifactRepository repository = manager.loadRepository(location, null);
+ if (repository instanceof IFileArtifactRepository) {
+ return (IFileArtifactRepository) repository;
+ }
+ // update site repository
+ return null;
} catch (ProvisionException e) {
//the repository doesn't exist, so fall through and create a new one
}

Back to the top