Mirror uninstall state in plugin object

This commit is contained in:
Rene Pfeuffer
2019-09-16 14:32:14 +02:00
parent 7ec2b0c31d
commit 5a8ed638dd
3 changed files with 23 additions and 0 deletions

View File

@@ -190,6 +190,7 @@ 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);
try {
Files.createFile(installed.getDirectory().resolve(InstalledPlugin.UNINSTALL_MARKER_FILENAME));