Skip to content

Do not delete package root if package was deleted

Alexander Lohnau requested to merge work/fix_manual_deletion into master

BUG: 410682
FIXED-IN: 5.74

The pluginId defaults to en empty string if the dir was deleted, so we would remove the plugin root folder.
To avoid this we pass in an empty string and this gets catched by the check if the file exists.

Also the comment to pass in packageroot and plugin Id separately has been "promoted" to a KF6 TODO,
because this will allow us to handle the check if the entry was deleted manually inside the uninstallPackage method.

@leinir @mart

Merge request reports