Skip to content

Commit

Permalink
Issue cweagans#258: Remove patch report generation (PATCHES.txt).
Browse files Browse the repository at this point in the history
This is a backport of pull request cweagans#213 for issue cweagans#140.
The two commits from cweagans#213 have been squashed into one.
  • Loading branch information
cweagans authored and donquixote committed Mar 15, 2019
1 parent 2ec4f00 commit f69cfc3
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/Patches.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,6 @@ public function postInstall(PackageEvent $event) {
}
}
$localPackage->setExtra($extra);

$this->io->write('');
$this->writePatchReport($this->patches[$package_name], $install_path);
}

/**
Expand Down Expand Up @@ -426,22 +423,6 @@ protected function isPatchingEnabled() {
}
}

/**
* Writes a patch report to the target directory.
*
* @param array $patches
* @param string $directory
*/
protected function writePatchReport($patches, $directory) {
$output = "This file was automatically generated by Composer Patches (https://github.com/cweagans/composer-patches)\n";
$output .= "Patches applied to this directory:\n\n";
foreach ($patches as $description => $url) {
$output .= $description . "\n";
$output .= 'Source: ' . $url . "\n\n\n";
}
file_put_contents($directory . "/PATCHES.txt", $output);
}

/**
* Executes a shell command with escaping.
*
Expand Down

0 comments on commit f69cfc3

Please sign in to comment.