mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
Fixed: Branch redirects will now occur during install of the a new update instead of during an update check.
This commit is contained in:
parent
7ce9f416d1
commit
2f06cc6ffa
3 changed files with 33 additions and 15 deletions
|
@ -42,21 +42,6 @@ namespace NzbDrone.Core.Update
|
|||
{
|
||||
_logger.ProgressDebug("No update available.");
|
||||
}
|
||||
else if (latestAvailable.Branch != _configFileProvider.Branch)
|
||||
{
|
||||
try
|
||||
{
|
||||
_logger.Info("Branch [{0}] is being redirected to [{1}]]", _configFileProvider.Branch, latestAvailable.Branch);
|
||||
var config = new Dictionary<string, object>();
|
||||
config["Branch"] = latestAvailable.Branch;
|
||||
_configFileProvider.SaveConfigDictionary(config);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_logger.ErrorException("Couldn't save the branch redirect.", e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return latestAvailable;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue