Update: Preliminary work for su3 router updates:

- new ROUTER_SIGNED_SU3 UpdateType
   - Add support for torrent and HTTP
   - Refactor UpdateRunners to return actual UpdateType
   - Deal with signed/su3 conflicts
   - unpack/verify stubbed only
This commit is contained in:
zzz
2013-09-22 18:03:56 +00:00
parent 6fede7f524
commit f47ec65b8f
17 changed files with 205 additions and 66 deletions

View File

@ -64,11 +64,16 @@ public class SU3File {
private static final int TYPE_ZIP = 0;
public static final int CONTENT_UNKNOWN = 0;
public static final int CONTENT_ROUTER = 1;
public static final int CONTENT_PLUGIN = 2;
public static final int CONTENT_RESEED = 3;
private enum ContentType {
UNKNOWN(0, "unknown"),
ROUTER(1, "router"),
PLUGIN(2, "plugin"),
RESEED(3, "reseed")
UNKNOWN(CONTENT_UNKNOWN, "unknown"),
ROUTER(CONTENT_ROUTER, "router"),
PLUGIN(CONTENT_PLUGIN, "plugin"),
RESEED(CONTENT_RESEED, "reseed")
;
private final int code;

View File

@ -6,14 +6,22 @@ package net.i2p.update;
* @since 0.9.4
*/
public enum UpdateType {
TYPE_DUMMY, // Internal use only
/** Dummy: internal use only */
TYPE_DUMMY,
NEWS,
ROUTER_SIGNED,
ROUTER_UNSIGNED,
PLUGIN,
/** unused */
GEOIP,
/** unused */
BLOCKLIST,
/** unused */
RESEED,
/** unused */
HOMEPAGE,
ADDRESSBOOK
/** unused */
ADDRESSBOOK,
/** @since 0.9.9 */
ROUTER_SIGNED_SU3
}