[BUGFIX] Cannot uninstall packages with dependencies in install tool 46/34946/3
authorOliver Hader <oliver@typo3.org>
Tue, 2 Dec 2014 18:23:03 +0000 (19:23 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 2 Dec 2014 18:40:03 +0000 (19:40 +0100)
commitc6a4974557c27199b393365efcecfe4d8580966a
tree14933167050e784acbfaebcd9dd90cd7896d7b1b
parentb6ca0e2bacc9d72c15679c16ff0fa0b995cb8627
[BUGFIX] Cannot uninstall packages with dependencies in install tool

Scenario:
* upgrading from Introcuction Package with TYPO3 CMS 6.2
  to TYPO3 CMS 7
* realurl is marked as incompatible extension to be uninstalled
* realurl is a dependency of bootstrap_package which itself is
  dependency of introduction

Result:
* resolving the dependencies does not work and thus the uninstall
  process for realurl fails as well

Solution:
* check whether extension to be removed is a dependency of some
  other extension
* if so, first remove that extension and afterwards to original
  extension

Resolves: #63526
Releases: master
Change-Id: Ie2bbfc1d46f338c42d557ec6d103b7766317cf75
Reviewed-on: http://review.typo3.org/34946
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/core/Classes/Package/PackageManager.php