From 4aa1e062368f8ee8e792951d675a811dd97f8699 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 6 Mar 2015 20:02:59 +0100 Subject: [PATCH] cleanup --- bin/pharext | Bin 37537 -> 37594 bytes src/pharext/Installer.php | 5 +++++ src/pharext/PeclSourceDir.php | 9 +++------ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bin/pharext b/bin/pharext index 8de8858ad01c58da9154fa238aa4a3275df75b23..23a217c2b8bf5f6791afa02f5f702c6ce8dd950f 100755 GIT binary patch delta 221 zcmZ3ul-he15rPv3_z5&v_6Q6k=7UZ%gexU@bu3R5Y4_q zd)?&O(#jyY0}v%2rNP=2Wb{CS0WwA)sznB@eXEQii1z|4w^>5=r5>MWUU5lcPEKl( zLPmam_T&rR3alW8_2fWJt;r4k+>_7Ad2TND*~GbdZkVEtO!Up^N-W3E{4Hq-RSgx~ Soqcsh>`^8L1_pO0Unc-ePEh~= diff --git a/src/pharext/Installer.php b/src/pharext/Installer.php index 19aad72..7ff112a 100644 --- a/src/pharext/Installer.php +++ b/src/pharext/Installer.php @@ -120,6 +120,11 @@ class Installer implements Command } } + /** + * Create a new temp directory + * @param string $prefix + * @return string + */ private function newtemp($prefix) { $temp = $this->tempname($prefix); if (!is_dir($temp)) { diff --git a/src/pharext/PeclSourceDir.php b/src/pharext/PeclSourceDir.php index 1e6d86e..dd19171 100644 --- a/src/pharext/PeclSourceDir.php +++ b/src/pharext/PeclSourceDir.php @@ -25,12 +25,6 @@ class PeclSourceDir implements \IteratorAggregate, SourceDir */ private $path; - /** - * Installer hook - * @var string - */ - private $hook; - /** * @inheritdoc * @see \pharext\SourceDir::__construct() @@ -131,6 +125,9 @@ class PeclSourceDir implements \IteratorAggregate, SourceDir */ private function generateFiles() { foreach ($this->generateHooks() as $file => $hook) { + if ($this->cmd->getArgs()->verbose) { + $this->cmd->info("Packaging %s\n", is_string($hook) ? $hook : $file); + } yield $file => $hook; } foreach ($this->sxe->xpath("//pecl:file") as $file) { -- 2.30.2