}
return;
}
// 2. Load the local release.xml file as a ChannelXmlBean.
ChannelXmlBean installedChannelBean = _util.getLocalReleaseInfo(releaseFilename);
// 3. & 3a. Get the release.xml file as a ChannelXmlBean from the server or
// filesystem.
ChannelXmlBean currentChannelBean = getCurrentChannelXmlBean(installedChannelBean);
// Record now as the last time we checked for updates.
_settings.setLastUpdateCheckTimeMillis("" + currentTimeMillis());
_app.getSquirrelPreferences().setUpdateSettings(_settings);
// 5. Is it the same as the local copy, which was placed either by the
// installer or the last update?
if (currentChannelBean == null)
{
s_log.warn("run: currentChannelBean was null - it is inconclusive whether or not the software "
+ "is current : assuming that it is for now");
if (_callback != null) {
_callback.updateCheckFailed(null);
}
}
else
{
isUpToDate = currentChannelBean.equals(installedChannelBean);
if (_callback != null)
{
_callback.updateCheckComplete(isUpToDate, installedChannelBean, currentChannelBean);
}
}