forked from I2P_Developers/i2p.i2p
Update: Ignore su3 dev build version at startup if older
This commit is contained in:
@ -194,10 +194,14 @@ public class ConsoleUpdateManager implements UpdateManager, RouterApp {
|
|||||||
register((Updater)dsuh, ROUTER_DEV_SU3, HTTP, 0);
|
register((Updater)dsuh, ROUTER_DEV_SU3, HTTP, 0);
|
||||||
newVersion = _context.getProperty(PROP_DEV_SU3_AVAILABLE);
|
newVersion = _context.getProperty(PROP_DEV_SU3_AVAILABLE);
|
||||||
if (newVersion != null) {
|
if (newVersion != null) {
|
||||||
List<URI> updateSources = dsuh.getUpdateSources();
|
if (VersionComparator.comp(newVersion, RouterVersion.FULL_VERSION) > 0) {
|
||||||
if (dsuh != null) {
|
List<URI> updateSources = dsuh.getUpdateSources();
|
||||||
VersionAvailable newVA = new VersionAvailable(newVersion, "", HTTP, updateSources);
|
if (dsuh != null) {
|
||||||
_available.put(new UpdateItem(ROUTER_DEV_SU3, ""), newVA);
|
VersionAvailable newVA = new VersionAvailable(newVersion, "", HTTP, updateSources);
|
||||||
|
_available.put(new UpdateItem(ROUTER_DEV_SU3, ""), newVA);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
_context.router().saveConfig(PROP_DEV_SU3_AVAILABLE, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 23;
|
public final static long BUILD = 24;
|
||||||
|
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "-rc";
|
public final static String EXTRA = "-rc";
|
||||||
|
Reference in New Issue
Block a user