fix verbose packaging
authorMichael Wallner <mike@php.net>
Mon, 30 Mar 2015 20:09:08 +0000 (22:09 +0200)
committerMichael Wallner <mike@php.net>
Mon, 30 Mar 2015 20:09:08 +0000 (22:09 +0200)
bin/pharext
src/pharext/Task/PharBuild.php

index c8de4259d0bc763a9c251de50459988ed4e2f602..f845c5e819e83a21d1e92bbf48acfae8a5551301 100755 (executable)
Binary files a/bin/pharext and b/bin/pharext differ
index bc79f79e61e018e1b194f2d0bf7d81652b6e37a7..03ac42c1019b5d6505eebd0f80b7ef07f9d92206 100644 (file)
@@ -74,10 +74,11 @@ class PharBuild implements Task
                                foreach ($this->source as $index => $file) {
                                        if (is_resource($file)) {
                                                printf("Packaging %s ...\n", $index);
+                                               $phar[$index] = $file;
                                        } else {
                                                printf("Packaging %s ...\n", $index = trim(substr($file, $blen), "/"));
+                                               $phar->addFile($file, $index);
                                        }
-                                       $phar[$index] = $file;
                                }
                        } else {
                                $phar->buildFromIterator($this->source, $this->source->getBaseDir());