From cad1497b951c6bcef555320c1e56da1ea885cd84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pluchino?= Date: Wed, 11 Jan 2012 01:26:44 +0100 Subject: [PATCH] Keep history action on download --- src/Composer/Downloader/FileDownloader.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Composer/Downloader/FileDownloader.php b/src/Composer/Downloader/FileDownloader.php index a87478f3e..456241899 100644 --- a/src/Composer/Downloader/FileDownloader.php +++ b/src/Composer/Downloader/FileDownloader.php @@ -104,7 +104,8 @@ abstract class FileDownloader implements DownloaderInterface copy($url, $fileName, $ctx); - $this->output->overwrite('', 80); + $this->output->overwrite(" Downloading: OK", 80); + $this->writeln(''); if (!file_exists($fileName)) { throw new \UnexpectedValueException($url.' could not be saved to '.$fileName.', make sure the' @@ -115,11 +116,11 @@ abstract class FileDownloader implements DownloaderInterface throw new \UnexpectedValueException('The checksum verification of the archive failed (downloaded from '.$url.')'); } - $this->output->overwrite(' Unpacking archive'); + $this->output->writeln(' Unpacking archive'); $this->extract($fileName, $path); - $this->output->overwrite(' Cleaning up'); + $this->output->writeln(' Cleaning up'); unlink($fileName); // If we have only a one dir inside it suppose to be a package itself