Update: Ignore su3 dev build version at startup if older

This commit is contained in:
zzz
2015-05-15 19:15:51 +00:00
parent d698a67660
commit e7af87a981
2 changed files with 9 additions and 5 deletions

View File

@ -194,11 +194,15 @@ public class ConsoleUpdateManager implements UpdateManager, RouterApp {
register((Updater)dsuh, ROUTER_DEV_SU3, HTTP, 0);
newVersion = _context.getProperty(PROP_DEV_SU3_AVAILABLE);
if (newVersion != null) {
if (VersionComparator.comp(newVersion, RouterVersion.FULL_VERSION) > 0) {
List<URI> updateSources = dsuh.getUpdateSources();
if (dsuh != null) {
VersionAvailable newVA = new VersionAvailable(newVersion, "", HTTP, updateSources);
_available.put(new UpdateItem(ROUTER_DEV_SU3, ""), newVA);
}
} else {
_context.router().saveConfig(PROP_DEV_SU3_AVAILABLE, null);
}
}
PluginUpdateHandler puh = new PluginUpdateHandler(_context, this);

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 23;
public final static long BUILD = 24;
/** for example "-test" */
public final static String EXTRA = "-rc";