- Several plugin install fixes

- Remove unused UpdateTypes
- Only try applicable updaters when updating
- Javadoc fixes
This commit is contained in:
zzz
2012-10-23 02:34:24 +00:00
parent 6f790d99c9
commit 724f4f9b37
10 changed files with 58 additions and 37 deletions

View File

@ -38,7 +38,7 @@ public interface UpdateManager {
* @param newsSource who told us
* @param id plugin name for plugins, ignored otherwise
* @param method How to get the new version
* @param updateSourcew Where to get the new version
* @param updateSources Where to get the new version
* @param newVersion The new version available
* @param minVersion The minimum installed version to be able to update to newVersion
* @return true if we didn't know already

View File

@ -6,11 +6,14 @@ package net.i2p.update;
* @since 0.9.4
*/
public enum UpdateMethod {
METHOD_DUMMY,
METHOD_DUMMY, // Internal use only
HTTP, // .i2p or via outproxy
HTTP_CLEARNET, // direct non-.i2p
HTTPS_CLEARNET, // direct non-.i2p
TORRENT,
GNUTELLA, IMULE, TAHOE_LAFS,
DEBIAN
GNUTELLA,
IMULE,
TAHOE_LAFS,
DEBIAN,
FILE // local file
}

View File

@ -6,13 +6,14 @@ package net.i2p.update;
* @since 0.9.4
*/
public enum UpdateType {
TYPE_DUMMY,
TYPE_DUMMY, // Internal use only
NEWS,
ROUTER_SIGNED,
ROUTER_SIGNED_PACK200, // unused, use ROUTER_SIGNED for both
ROUTER_UNSIGNED,
PLUGIN, PLUGIN_INSTALL,
GEOIP, BLOCKLIST, RESEED,
PLUGIN,
GEOIP,
BLOCKLIST,
RESEED,
HOMEPAGE,
ADDRESSBOOK
}