Fixed: Smarter application update completed message

Sonarr e97e13e89
This commit is contained in:
Qstick 2017-09-27 22:20:37 -04:00
commit 82ee8e6c42
4 changed files with 218 additions and 127 deletions

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using NLog;
@ -200,19 +200,20 @@ namespace NzbDrone.Core.Update
if (latestAvailable == null)
{
_logger.ProgressDebug("No update available.");
_logger.ProgressDebug("No update available");
return;
}
if (OsInfo.IsNotWindows && !_configFileProvider.UpdateAutomatically && message.Trigger != CommandTrigger.Manual)
{
_logger.ProgressDebug("Auto-update not enabled, not installing available update.");
_logger.ProgressDebug("Auto-update not enabled, not installing available update");
return;
}
try
{
InstallUpdate(latestAvailable);
_logger.ProgressDebug("Restarting Lidarr to apply updates");
}
catch (UpdateFolderNotWritableException ex)
{