public function patch($build, $options) { $this->logger->info('===> Applying patch - apxs2 module version name ...'); if ($options->dryrun) { return; } $patches = PatchCollection::createPatchesForApxs2($this->logger, $build); foreach ($patches as $patch) { $patch->enableBackup(); $patch->apply(); } }
public function patch(Build $build) { $this->info("===> Checking if php-5.3 source is on 64bit machine"); if ($this->match($build)) { // Then patch Makefile for PHP 5.3.x on 64bit system. $this->info("===> Applying patch file for php5.3.x on 64bit machine."); if (!$this->options->dryrun) { $patches = PatchCollection::createPatchesFor64BitSupport($this->logger, $build); foreach ($patches as $patch) { $patch->enableBackup(); $patch->apply(); } } } }
public function testCreatePathcesForApxs2() { is(1, count(PatchCollection::createPatchesForApxs2($this->logger, $this->build))); }