Browse Source

Fix output of invalid zip files when download is retried

Jordi Boggiano 11 years ago
parent
commit
78a8a5ca0b
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/Composer/Downloader/ArchiveDownloader.php

+ 1 - 3
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;
                 }