Remove wrong extension uploads after fail
With the new package manager in 6.2 it is not possible to upload an extension without ext_emconf or composer file. An error is thrown an the installation process stops. Anyway the extracted folder stays on the system. As the folders might contain illegal server scripts we should remove them again.
[BUGFIX] Remove failing extension installations
This patch takes care about removing extracted extension folders if an
installation fails. For new extensions the folder is simply removed, for
already existing ones a backup in typo3temp is done before the
installation process and restored if anything fails.
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel