private boolean canInstallUpdate(UpdateInfo updateInfo, long maxRetries) {
Version fromVersion = updateInfo.m_from;
Version toVersion = updateInfo.m_to;
String type = updateInfo.m_type;
if (toVersion.compareTo(fromVersion) > 0) {
// Possible newer version, lets check our administration whether we actually need to do something...
if (m_lastVersionTried != null && toVersion.equals(m_lastVersionTried)) {
if (m_failureCount >= maxRetries) {
m_controller.logDebug("Ignoring %s update %s => %s because max retries (%d) reached!", type, fromVersion, toVersion, maxRetries);
return false;