From a3f5f603591e1866481877ed065787af1690c0b1 Mon Sep 17 00:00:00 2001 From: Samuel ROZE Date: Mon, 14 Sep 2015 10:17:13 +0100 Subject: [PATCH] Update output to have a coherent one --- src/Composer/Downloader/PathDownloader.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Composer/Downloader/PathDownloader.php b/src/Composer/Downloader/PathDownloader.php index 88b860c54..c58a3f23a 100644 --- a/src/Composer/Downloader/PathDownloader.php +++ b/src/Composer/Downloader/PathDownloader.php @@ -33,13 +33,13 @@ class PathDownloader extends FileDownloader $this->filesystem->removeDirectory($path); $this->io->writeError(sprintf( - ' - Installing %s (%s) from %s', + ' - Installing %s (%s)', $package->getName(), - $package->getFullPrettyVersion(), - $package->getDistUrl() + $package->getFullPrettyVersion() )); - if (!file_exists($path) || !is_dir($path)) { + $url = $package->getDistUrl(); + if (!file_exists($url) || !is_dir($url)) { throw new \RuntimeException(sprintf( 'Path "%s" is not found', $path @@ -47,9 +47,13 @@ class PathDownloader extends FileDownloader } try { - $fileSystem->symlink($package->getDistUrl(), $path); + $fileSystem->symlink($url, $path); + $this->io->writeError(sprintf(' Symlinked from %s', $url)); } catch (IOException $e) { - $fileSystem->mirror($package->getDistUrl(), $path); + $fileSystem->mirror($url, $path); + $this->io->writeError(sprintf(' Mirrored from %s', $url)); } + + $this->io->writeError(''); } }