From fcf8678195ef07dbb50b417afec5b2f297aa79ca Mon Sep 17 00:00:00 2001 From: Titouan Vervack Date: Wed, 24 Apr 2024 17:23:37 +0200 Subject: [PATCH] Don't follow disabled repositories --- .../org/eclipse/pde/internal/core/target/P2TargetUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/P2TargetUtils.java b/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/P2TargetUtils.java index 3c283aadb1..dc7e822985 100644 --- a/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/P2TargetUtils.java +++ b/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/P2TargetUtils.java @@ -1046,7 +1046,8 @@ private static void addReferences(IMetadataRepository repository, List references = repository.getReferences(); SubMonitor subMonitor = SubMonitor.convert(monitor, references.size() * 2); for (IRepositoryReference reference : references) { - if (reference.getType() == IRepository.TYPE_METADATA && seen.add(reference)) { + if (reference.getType() == IRepository.TYPE_METADATA && reference.getOptions() == IRepository.ENABLED + && seen.add(reference)) { try { IMetadataRepository referencedRepository = manager.loadRepository(reference.getLocation(), subMonitor.split(1));