From cfa8dcca29c502af176c84efa6d8236c7fe23403 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Thu, 4 Dec 2014 15:22:35 -0800 Subject: [PATCH] New: Added support for automatic update branch redirection --- src/NzbDrone.Core/Update/UpdateCheckService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Update/UpdateCheckService.cs b/src/NzbDrone.Core/Update/UpdateCheckService.cs index 217b04b70..c4e364094 100644 --- a/src/NzbDrone.Core/Update/UpdateCheckService.cs +++ b/src/NzbDrone.Core/Update/UpdateCheckService.cs @@ -45,9 +45,9 @@ public UpdatePackage AvailableUpdate() { try { - _logger.Warn("[{0}] isn't a valid branch. Switching back to [master]", _configFileProvider.Branch); + _logger.Warn("Branch [{0}] is being redirected to [{1}]]", _configFileProvider.Branch, latestAvailable.Branch); var config = _configFileProvider.GetConfigDictionary(); - config["Branch"] = _configFileProvider.Branch; + config["Branch"] = latestAvailable.Branch; _configFileProvider.SaveConfigDictionary(config); } catch (Exception e)