mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
Fetch exception when uninstall file could not be written
This commit is contained in:
@@ -193,9 +193,14 @@ public class DefaultPluginManager implements PluginManager {
|
||||
doThrow().violation("plugin is a core plugin and cannot be uninstalled").when(installed.isCore());
|
||||
|
||||
dependencyTracker.removeInstalled(installed.getDescriptor());
|
||||
installed.setMarkedForUninstall(true);
|
||||
|
||||
createMarkerFile(installed, InstalledPlugin.UNINSTALL_MARKER_FILENAME);
|
||||
try {
|
||||
createMarkerFile(installed, InstalledPlugin.UNINSTALL_MARKER_FILENAME);
|
||||
installed.setMarkedForUninstall(true);
|
||||
} catch (RuntimeException e) {
|
||||
dependencyTracker.addInstalled(installed.getDescriptor());
|
||||
throw e;
|
||||
}
|
||||
|
||||
if (restartAfterInstallation) {
|
||||
restart("plugin installation");
|
||||
|
||||
Reference in New Issue
Block a user