From 54e587477066aea43652eb34ef5d9660eaca0091 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 21 Nov 2011 20:42:05 -0800 Subject: [PATCH] Update client is now moved rather than copied. --- NzbDrone.Core.Test/JobTests/AppUpdateJobFixture.cs | 2 +- NzbDrone.Core/Providers/Jobs/AppUpdateJob.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Core.Test/JobTests/AppUpdateJobFixture.cs b/NzbDrone.Core.Test/JobTests/AppUpdateJobFixture.cs index d938605fc..c4bb7cedb 100644 --- a/NzbDrone.Core.Test/JobTests/AppUpdateJobFixture.cs +++ b/NzbDrone.Core.Test/JobTests/AppUpdateJobFixture.cs @@ -97,7 +97,7 @@ namespace NzbDrone.Core.Test.JobTests //Assert Mocker.GetMock().Verify( - c => c.CopyDirectory(updateClientFolder, SANDBOX_FOLDER)); + c => c.MoveDirectory(updateClientFolder, SANDBOX_FOLDER)); } [Test] diff --git a/NzbDrone.Core/Providers/Jobs/AppUpdateJob.cs b/NzbDrone.Core/Providers/Jobs/AppUpdateJob.cs index eebb459c2..34375b659 100644 --- a/NzbDrone.Core/Providers/Jobs/AppUpdateJob.cs +++ b/NzbDrone.Core/Providers/Jobs/AppUpdateJob.cs @@ -68,7 +68,7 @@ namespace NzbDrone.Core.Providers.Jobs logger.Info("Preparing client"); notification.CurrentMessage = "Preparing to start Update"; - _diskProvider.CopyDirectory(_enviromentProvider.GetUpdateClientFolder(), _enviromentProvider.GetUpdateSandboxFolder()); + _diskProvider.MoveDirectory(_enviromentProvider.GetUpdateClientFolder(), _enviromentProvider.GetUpdateSandboxFolder()); logger.Info("Starting update client");