mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 12:32:31 +01:00
UpdateProvider will delete update package after installation.
This commit is contained in:
parent
50ee3f8d4d
commit
0224db7440
@ -143,6 +143,9 @@ public void should_copy_update_package_to_target()
|
|||||||
Mocker.GetMock<DiskProvider>()
|
Mocker.GetMock<DiskProvider>()
|
||||||
.Setup(c => c.CopyDirectory(UPDATE_FOLDER, TARGET_FOLDER));
|
.Setup(c => c.CopyDirectory(UPDATE_FOLDER, TARGET_FOLDER));
|
||||||
|
|
||||||
|
Mocker.GetMock<DiskProvider>()
|
||||||
|
.Setup(c => c.DeleteFolder(UPDATE_FOLDER, true));
|
||||||
|
|
||||||
Mocker.Resolve<UpdateProvider>().Start(TARGET_FOLDER);
|
Mocker.Resolve<UpdateProvider>().Start(TARGET_FOLDER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,6 +79,7 @@ public virtual void Start(string targetFolder)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
_diskProvider.CopyDirectory(_enviromentProvider.GetUpdatePackageFolder(), targetFolder);
|
_diskProvider.CopyDirectory(_enviromentProvider.GetUpdatePackageFolder(), targetFolder);
|
||||||
|
_diskProvider.DeleteFolder(_enviromentProvider.GetUpdatePackageFolder(), true);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user