Skip to content

Commit e25e84a

Browse files
committed
Explain stages of adding an update site
1 parent bcc488b commit e25e84a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/net/imagej/updater/CommandLine.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,14 +1265,18 @@ public void addOrEditUploadSite(final String name, final String url,
12651265
site.setActive(true);
12661266
}
12671267
try {
1268+
// Update the db.xml.gz
12681269
files.write();
1270+
// Generate FileObjects for the new update site's files
12691271
files.reloadCollectionAndChecksum(progress);
1272+
// Flag any files in need of update
12701273
for (FileObject file : files.forUpdateSite(name)) {
12711274
if (file.getStatus() != Status.INSTALLED
12721275
&& !file.stageForUpdate(files, false)) {
12731276
log.warn("Skipping " + file.filename);
12741277
}
12751278
}
1279+
// Stage changes on disk in the update folder
12761280
new Installer(files, progress).start();
12771281
} catch (final Exception e) {
12781282
UpdaterUserInterface.get().handleException(e);

0 commit comments

Comments
 (0)