From 78a8a5ca0bd9209b90fcf3954b0791ec5ed47b1c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 17 Aug 2013 00:41:51 +0200 Subject: [PATCH] Fix output of invalid zip files when download is retried --- src/Composer/Downloader/ArchiveDownloader.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Composer/Downloader/ArchiveDownloader.php b/src/Composer/Downloader/ArchiveDownloader.php index 8de4bdcb3..48e39626a 100644 --- a/src/Composer/Downloader/ArchiveDownloader.php +++ b/src/Composer/Downloader/ArchiveDownloader.php @@ -71,9 +71,7 @@ abstract class ArchiveDownloader extends FileDownloader // retry downloading if we have an invalid zip file if ($retries && $e instanceof \UnexpectedValueException && $e->getCode() === \ZipArchive::ER_NOZIP) { - if ($this->io->isVerbose()) { - $this->io->write(' Invalid zip file, retrying...'); - } + $this->io->write(' Invalid zip file, retrying...'); usleep(500000); continue; }