|
1 | 1 | /*******************************************************************************
|
2 |
| - * Copyright (c) 2008, 2017 IBM Corporation and others. |
| 2 | + * Copyright (c) 2008, 2024 IBM Corporation and others. |
3 | 3 | *
|
4 | 4 | * This program and the accompanying materials
|
5 | 5 | * are made available under the terms of the Eclipse Public License 2.0
|
@@ -82,7 +82,7 @@ private static boolean isURL(URI location) {
|
82 | 82 |
|
83 | 83 | private void resetCache(IArtifactRepository repository) {
|
84 | 84 | repository.setProperty(PROP_SITE_CHECKSUM, "0"); //$NON-NLS-1$
|
85 |
| - repository.removeAll(); |
| 85 | + repository.removeAll(new NullProgressMonitor()); |
86 | 86 | }
|
87 | 87 |
|
88 | 88 | public IArtifactRepository loadRepository(URI location, IProgressMonitor monitor) {
|
@@ -110,7 +110,7 @@ public void initializeRepository(IArtifactRepository repository, URI location, I
|
110 | 110 | repository.setProperty(PROP_SITE_CHECKSUM, updateSite.getChecksum());
|
111 | 111 | if (updateSite.getSite().getMirrorsURI() != null)
|
112 | 112 | repository.setProperty(IRepository.PROP_MIRRORS_URL, updateSite.getSite().getMirrorsURI());
|
113 |
| - repository.removeAll(); |
| 113 | + repository.removeAll(new NullProgressMonitor()); |
114 | 114 | generateArtifactDescriptors(updateSite, repository, monitor);
|
115 | 115 | }
|
116 | 116 |
|
@@ -151,6 +151,6 @@ private void generateArtifactDescriptors(UpdateSite updateSite, IArtifactReposit
|
151 | 151 | }
|
152 | 152 | }
|
153 | 153 | IArtifactDescriptor[] descriptors = allSiteArtifacts.toArray(new IArtifactDescriptor[allSiteArtifacts.size()]);
|
154 |
| - repository.addDescriptors(descriptors); |
| 154 | + repository.addDescriptors(descriptors, monitor); |
155 | 155 | }
|
156 | 156 | }
|
0 commit comments