Removed InstallUpdate, instead manually triggering ApplicationUpdate.

This commit is contained in:
Taloth Saldono 2015-01-27 20:32:48 +01:00
parent 2f06cc6ffa
commit 071839fa86
7 changed files with 33 additions and 63 deletions

View file

@ -31,19 +31,7 @@ namespace NzbDrone.Core.Update
public UpdatePackage AvailableUpdate()
{
var latestAvailable = _updatePackageProvider.GetLatestUpdate(_configFileProvider.Branch, BuildInfo.Version);
if (OsInfo.IsNotWindows && !_configFileProvider.UpdateAutomatically)
{
return null;
}
if (latestAvailable == null)
{
_logger.ProgressDebug("No update available.");
}
return latestAvailable;
return _updatePackageProvider.GetLatestUpdate(_configFileProvider.Branch, BuildInfo.Version);
}
}
}