From: Michael Wallner Date: Fri, 6 Mar 2015 19:02:59 +0000 (+0100) Subject: cleanup X-Git-Tag: v1.1.0~4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4aa1e062368f8ee8e792951d675a811dd97f8699;p=pharext%2Fpharext cleanup --- diff --git a/bin/pharext b/bin/pharext index 8de8858..23a217c 100755 Binary files a/bin/pharext and b/bin/pharext differ 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) {