diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-05-08 14:08:21 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-08 14:08:21 -0400 |
| commit | c8c4eb3ab5ff88aa7f756c096b4f896e0dae68f7 (patch) | |
| tree | dc1178b5e142b6770be17e5e5389fa495e45dd0e /Emby.Server.Implementations/Updates/InstallationManager.cs | |
| parent | 69d17b0e45e7287842b77e12bfd3bd3a683b6a3a (diff) | |
| parent | ff03a018530c41fb5de4dd6932bd86d062d3f7ae (diff) | |
Merge pull request #2624 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Updates/InstallationManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Updates/InstallationManager.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs index 57019cc4e..e7aa402f2 100644 --- a/Emby.Server.Implementations/Updates/InstallationManager.cs +++ b/Emby.Server.Implementations/Updates/InstallationManager.cs @@ -664,9 +664,19 @@ namespace Emby.Server.Implementations.Updates // Remove it the quick way for now _applicationHost.RemovePlugin(plugin); - _logger.Info("Deleting plugin file {0}", plugin.AssemblyFilePath); + var path = plugin.AssemblyFilePath; + _logger.Info("Deleting plugin file {0}", path); - _fileSystem.DeleteFile(plugin.AssemblyFilePath); + // Make this case-insensitive to account for possible incorrect assembly naming + var file = _fileSystem.GetFilePaths(path) + .FirstOrDefault(i => string.Equals(i, path, StringComparison.OrdinalIgnoreCase)); + + if (!string.IsNullOrWhiteSpace(file)) + { + path = file; + } + + _fileSystem.DeleteFile(path); OnPluginUninstalled(plugin); |
