[BUGFIX] Reload ext_emconf.php after extension update 35/40935/5
authorNicole Cordes <typo3@cordes.co>
Mon, 6 Jul 2015 19:55:42 +0000 (21:55 +0200)
committerAlexander Opitz <opitz.alexander@googlemail.com>
Tue, 6 Oct 2015 06:39:58 +0000 (08:39 +0200)
commitbabcead94edc29d1ed451dfba166bedbe61ed579
tree53c3cf2a62f1046805e94206fb5b4e651cd4ee92
parent94d5db391b95295b8ad7659adde1f1ffdb943182
[BUGFIX] Reload ext_emconf.php after extension update

If you overwrite an extension or download a new version with the
extension manager, the dependency check uses old ext_emconf dependencies
which are stored in the PackageManager. This patch extends the
PackageManager api to be able to create a new Package instance with
fresh ext_emconf information and replace the current instance. This new
function is called after an extension was extracted from a file or
was downloaded from the extension manager.

Resolves: #67367
Releases: master
Change-Id: I4d4dbb94aaafcbe1d99f496039d17d4856bce3bd
Reviewed-on: http://review.typo3.org/40935
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
typo3/sysext/core/Classes/Package/PackageManager.php
typo3/sysext/extensionmanager/Classes/Controller/UploadExtensionFileController.php
typo3/sysext/extensionmanager/Classes/Service/ExtensionManagementService.php
typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php
typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/FileHandlingUtilityTest.php