Updater: Fix over-qualified name

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: add methods to get at the filename without version

We'd like to be able to determine the unversioned file name of .jar files
(e.g. bio-formats.jar for bio-formats-4.4.jar) to be able to determine
whether two .jar files are just two different versions of the same
artifact.

This is important for the code allowing to upgrade to files with a higher
version number, as required by ImageJ2 where all the files keep the
version in their filename.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: handle files with versioned filenames gracefully

FilesCollection is already a map from file name to file object. This
commit changes it to map from the _unversioned_ file name to the file
object.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
UpdaterTest: test multiple update sites

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: rename fields for local checksum and timestamp appropriately

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: fix funny line wrapping

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: remember when a file is available from multiple sites

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: remember local filename

This is important when we want to update files whose names include
version information.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: make UpdateSite sortable

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: re-read update overridden sites after removing an update site

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: cut reading update sites short when there is nothing to see

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: when checksumming, warn about conflicting file versions

While at it, re-use the local file name when checksumming.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: make it a conflict when there are multiple file versions

When uploading, say, jars/commons-math-3.0.jar, and there is a
jars/commons-math-2.2.jar, one cannot really say whether the correct
classes were used in the tests prior to uploading.

Therefore refuse to upload without the user acknowledging that there is a
problem, Houston.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: do not get confused when a FileObject's filename changes

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: show the local filename in the GUI, too

When the local and the remote filename differ due to a different
version recorded in the filename, it is better to show both than just
the remote one.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: use the local name when uploading

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Updater: when uploading new file versions, fix up the dependencies, too

When jfreechart-1.0.10.jar is updated to -1.0.12.jar, let's reflect
that in all users of said file.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>