|
84 | 84 | * {@code deactivate-update-site}, will stage changes without applying them. |
85 | 85 | * If there is an {@code update} subdir, this will have any prospective changes |
86 | 86 | * that can be applied automatically on the next ImageJ launch. Some commands |
87 | | - * might not create the staging directory though, e.g. the {@code db.xml.gz} is |
88 | | - * updated but no files are staged, in which case the {@code update} directive |
89 | | - * can be used to apply the changes. |
| 87 | + * (such as {@code add-update-site}), do not create the staging directory |
| 88 | + * though, e.g. the {@code db.xml.gz} is updated but no files are staged, in |
| 89 | + * which case the {@code update} directive can be used to apply the changes. |
90 | 90 | * |
91 | 91 | * @author Johannes Schindelin |
92 | 92 | */ |
@@ -1267,17 +1267,6 @@ public void addOrEditUploadSite(final String name, final String url, |
1267 | 1267 | try { |
1268 | 1268 | // Update the db.xml.gz |
1269 | 1269 | files.write(); |
1270 | | - // Generate FileObjects for the new update site's files |
1271 | | - files.reloadCollectionAndChecksum(progress); |
1272 | | - // Flag any files in need of update |
1273 | | - for (FileObject file : files.forUpdateSite(name)) { |
1274 | | - if (file.getStatus() != Status.INSTALLED |
1275 | | - && !file.stageForUpdate(files, false)) { |
1276 | | - log.warn("Skipping " + file.filename); |
1277 | | - } |
1278 | | - } |
1279 | | - // Stage changes on disk in the update folder |
1280 | | - new Installer(files, progress).start(); |
1281 | 1270 | } catch (final Exception e) { |
1282 | 1271 | UpdaterUserInterface.get().handleException(e); |
1283 | 1272 | throw die("Could not write local file database"); |
|
0 commit comments