Skip to content

Commit

Permalink
Merge pull request #107 from adamj88/fix/103
Browse files Browse the repository at this point in the history
Resolve unzip error on applying new patches when composer cache is cleared
  • Loading branch information
zamoroka-vaimo authored Nov 22, 2023
2 parents 148ab02 + 885dec7 commit 6d8e2de
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Compatibility/Executor.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ public function processReinstallOperation(
$package = $installOperation->getPackage();
$installer = $installationManager->getInstaller($package->getType());

return $installationManager
->uninstall($repository, $uninstallOperation)
->then(function() use ($installer, $package) {
$installer->download($package);
})
$installationManager->uninstall($repository, $uninstallOperation);

return $installer
->download($package)
->then(function () use ($installationManager, $installOperation, $repository) {
$installationManager->install($repository, $installOperation);
});
Expand Down

0 comments on commit 6d8e2de

Please sign in to comment.