mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
parent
a602611a5f
commit
a4b78b44ce
1307 changed files with 8702 additions and 7403 deletions
|
@ -57,10 +57,14 @@ namespace NzbDrone.Update.UpdateEngine
|
|||
_logger.Info("Verifying requirements before update...");
|
||||
|
||||
if (string.IsNullOrWhiteSpace(targetFolder))
|
||||
{
|
||||
throw new ArgumentException("Target folder can not be null or empty");
|
||||
}
|
||||
|
||||
if (!_diskProvider.FolderExists(targetFolder))
|
||||
{
|
||||
throw new DirectoryNotFoundException("Target folder doesn't exist " + targetFolder);
|
||||
}
|
||||
|
||||
if (processId < 1)
|
||||
{
|
||||
|
@ -74,7 +78,9 @@ namespace NzbDrone.Update.UpdateEngine
|
|||
|
||||
_logger.Info("Verifying Update Folder");
|
||||
if (!_diskProvider.FolderExists(_appFolderInfo.GetUpdatePackageFolder()))
|
||||
{
|
||||
throw new DirectoryNotFoundException("Update folder doesn't exist " + _appFolderInfo.GetUpdatePackageFolder());
|
||||
}
|
||||
}
|
||||
|
||||
public void Start(string installationFolder, int processId)
|
||||
|
@ -154,7 +160,6 @@ namespace NzbDrone.Update.UpdateEngine
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue