cleanup
authorMichael Wallner <mike@php.net>
Fri, 6 Mar 2015 19:02:59 +0000 (20:02 +0100)
committerMichael Wallner <mike@php.net>
Fri, 6 Mar 2015 19:02:59 +0000 (20:02 +0100)
bin/pharext
src/pharext/Installer.php
src/pharext/PeclSourceDir.php

index 8de8858ad01c58da9154fa238aa4a3275df75b23..23a217c2b8bf5f6791afa02f5f702c6ce8dd950f 100755 (executable)
Binary files a/bin/pharext and b/bin/pharext differ
index 19aad72c67f531bee4b77361769115483a2262d0..7ff112a38c391ae65bd0d36b46a7d176d910c9e6 100644 (file)
@@ -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)) {
index 1e6d86ec7c8360d568136025e48eb0ba96725f4f..dd19171a55e307b9007aa7dc9256d50c249c2b29 100644 (file)
@@ -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) {