From: Michael Wallner Date: Mon, 30 Mar 2015 20:09:08 +0000 (+0200) Subject: fix verbose packaging X-Git-Tag: v3.0.0~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ac44bc42a000ebb261f71de7ae271b23bd6f3a3d;p=pharext%2Fpharext fix verbose packaging --- diff --git a/bin/pharext b/bin/pharext index c8de425..f845c5e 100755 Binary files a/bin/pharext and b/bin/pharext differ diff --git a/src/pharext/Task/PharBuild.php b/src/pharext/Task/PharBuild.php index bc79f79..03ac42c 100644 --- a/src/pharext/Task/PharBuild.php +++ b/src/pharext/Task/PharBuild.php @@ -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());