mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
commit
a68c6f61ec
2 changed files with 4 additions and 5 deletions
|
@ -91,10 +91,6 @@ abstract class ArchiveDownloader extends FileDownloader
|
|||
|
||||
break;
|
||||
}
|
||||
|
||||
if ($output) {
|
||||
$this->io->writeError('');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -90,7 +90,8 @@ class FileDownloader implements DownloaderInterface
|
|||
$urls = $package->getDistUrls();
|
||||
while ($url = array_shift($urls)) {
|
||||
try {
|
||||
return $this->doDownload($package, $path, $url);
|
||||
$fileName = $this->doDownload($package, $path, $url);
|
||||
break;
|
||||
} catch (\Exception $e) {
|
||||
if ($this->io->isDebug()) {
|
||||
$this->io->writeError('');
|
||||
|
@ -109,6 +110,8 @@ class FileDownloader implements DownloaderInterface
|
|||
if ($output) {
|
||||
$this->io->writeError('');
|
||||
}
|
||||
|
||||
return $fileName;
|
||||
}
|
||||
|
||||
protected function doDownload(PackageInterface $package, $path, $url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue