Allow to re-install the current update

This commit is contained in:
Gabriele M
2017-07-15 02:09:22 +02:00
parent d30ba00a7b
commit c7f4c48a67

View File

@@ -85,7 +85,7 @@ public class Utils {
} }
public static boolean canInstall(Update update) { public static boolean canInstall(Update update) {
return update.getTimestamp() > SystemProperties.getLong(Constants.PROP_BUILD_DATE, 0) && return update.getTimestamp() >= SystemProperties.getLong(Constants.PROP_BUILD_DATE, 0) &&
update.getVersion().equalsIgnoreCase( update.getVersion().equalsIgnoreCase(
SystemProperties.get(Constants.PROP_BUILD_VERSION)); SystemProperties.get(Constants.PROP_BUILD_VERSION));
} }