Added config option to make ripme always try to update (for testing purposes)
This commit is contained in:
parent
b0bcf506aa
commit
1adc0a9bf7
@ -159,6 +159,10 @@ public class UpdateUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isNewerVersion(String latestVersion) {
|
private static boolean isNewerVersion(String latestVersion) {
|
||||||
|
// If we're testing the update utils we want the program to always try to update
|
||||||
|
if (Utils.getConfigBoolean("testing.always_try_to_update", false)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
int[] oldVersions = versionStringToInt(getThisJarVersion());
|
int[] oldVersions = versionStringToInt(getThisJarVersion());
|
||||||
int[] newVersions = versionStringToInt(latestVersion);
|
int[] newVersions = versionStringToInt(latestVersion);
|
||||||
if (oldVersions.length < newVersions.length) {
|
if (oldVersions.length < newVersions.length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user