From b34e8554d29c21e68a3d439c606bdc03af32fb40 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 13 Dec 2012 16:54:05 +0100 Subject: [PATCH] Output info about downloads even with --no-progress and show when reading from cache, refs #1410 --- src/Composer/Downloader/FileDownloader.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Composer/Downloader/FileDownloader.php b/src/Composer/Downloader/FileDownloader.php index 437873492..7f8d8e0b6 100644 --- a/src/Composer/Downloader/FileDownloader.php +++ b/src/Composer/Downloader/FileDownloader.php @@ -96,9 +96,14 @@ class FileDownloader implements DownloaderInterface try { if (!$this->cache || !$this->cache->copyTo($this->getCacheKey($package), $fileName)) { $this->rfs->copy($hostname, $processedUrl, $fileName, $this->outputProgress); + if (!$this->outputProgress) { + $this->io->write(' Downloading'); + } if ($this->cache) { $this->cache->copyFrom($this->getCacheKey($package), $fileName); } + } else { + $this->io->write(' Loading from cache'); } } catch (TransportException $e) { if (404 === $e->getCode() && 'github.com' === $hostname) {