From 03cc3a1ad259f37671a996eb78b78fa508c697a8 Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 8 Jan 2017 19:42:46 +0100 Subject: [PATCH] Change default branch in config. (#63) * Change Sonarr / NzbDrone auto-updater stuff to Radarr. This is required in order for the auto-updater to work. * Change default branch to develop instead of forcing it. --- src/NzbDrone.Core/Configuration/ConfigFileProvider.cs | 3 ++- src/NzbDrone.Core/Update/UpdateCheckService.cs | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs b/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs index 2eeaf6463..4b7543d5f 100644 --- a/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs +++ b/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs @@ -161,7 +161,8 @@ namespace NzbDrone.Core.Configuration public bool AnalyticsEnabled => GetValueBoolean("AnalyticsEnabled", true, persist: false); - public string Branch => GetValue("Branch", "master").ToLowerInvariant(); + // TODO: Change back to "master" for the first stable release. + public string Branch => GetValue("Branch", "develop").ToLowerInvariant(); public string LogLevel => GetValue("LogLevel", "Info"); diff --git a/src/NzbDrone.Core/Update/UpdateCheckService.cs b/src/NzbDrone.Core/Update/UpdateCheckService.cs index 123666e9a..807250780 100644 --- a/src/NzbDrone.Core/Update/UpdateCheckService.cs +++ b/src/NzbDrone.Core/Update/UpdateCheckService.cs @@ -28,8 +28,7 @@ namespace NzbDrone.Core.Update public UpdatePackage AvailableUpdate() { - //For new let's just use develop, afterwards we can change it back to the config: _configFileProvider.Branch - return _updatePackageProvider.GetLatestUpdate("develop", BuildInfo.Version); + return _updatePackageProvider.GetLatestUpdate(_configFileProvider.Branch, BuildInfo.Version); } } } \ No newline at end of file