Skip to content

Commit

Permalink
Merge pull request #143 from LionsAd/fix-failing-patches
Browse files Browse the repository at this point in the history
Fix duplicate entries after failed patch.
  • Loading branch information
cweagans authored Jul 17, 2017
2 parents b3036f2 + f61b41c commit 6bd6ecd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Patches.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ public function postInstall(PackageEvent $event) {
}
catch (\Exception $e) {
$this->io->write(' <error>Could not apply patch! Skipping. The error was: ' . $e->getMessage() . '</error>');
$extra = $this->composer->getPackage()->getExtra();
if (getenv('COMPOSER_EXIT_ON_PATCH_FAILURE') || !empty($extra['composer-exit-on-patch-failure'])) {
throw new \Exception("Cannot apply patch $description ($url)!");
}
Expand Down

0 comments on commit 6bd6ecd

Please sign in to comment.