Skip to content

Commit

Permalink
Fix regression in P2TargetUtils
Browse files Browse the repository at this point in the history
Introduced in #1253
  • Loading branch information
tivervac committed May 2, 2024
1 parent b47b6af commit b160e38
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,7 @@ static IQueryable<IInstallableUnit> getQueryableMetadata(URI[] repos, boolean fo
int repoCount = repos.length;
SubMonitor subMonitor = SubMonitor.convert(monitor, repoCount * 2);

Set<IRepositoryReference> seen = new HashSet<>();
List<IMetadataRepository> result = new ArrayList<>(repoCount);
List<IMetadataRepository> additional = new ArrayList<>();
MultiStatus repoStatus = new MultiStatus(PDECore.PLUGIN_ID, 0, Messages.IUBundleContainer_ProblemsLoadingRepositories, null);
Expand All @@ -1057,7 +1058,7 @@ static IQueryable<IInstallableUnit> getQueryableMetadata(URI[] repos, boolean fo
IMetadataRepository repository = manager.loadRepository(repos[i], subMonitor.split(1));
result.add(repository);
if (followRepositoryReferences) {
addReferences(repository, additional, new HashSet<>(), manager, subMonitor.split(1));
addReferences(repository, additional, seen, manager, subMonitor.split(1));
}
} catch (ProvisionException e) {
repoStatus.add(e.getStatus());
Expand Down

0 comments on commit b160e38

Please sign in to comment.