Return path of the downloaded file
parent
d2ef829cc6
commit
30f94365f0
|
@ -31,9 +31,8 @@ abstract class ArchiveDownloader extends FileDownloader
|
|||
$temporaryDir = $this->config->get('vendor-dir').'/composer/'.substr(md5(uniqid('', true)), 0, 8);
|
||||
$retries = 3;
|
||||
while ($retries--) {
|
||||
parent::download($package, $path);
|
||||
$fileName = parent::download($package, $path);
|
||||
|
||||
$fileName = $this->getFileName($package, $path);
|
||||
if ($this->io->isVerbose()) {
|
||||
$this->io->write(' Extracting archive');
|
||||
}
|
||||
|
|
|
@ -153,6 +153,8 @@ class FileDownloader implements DownloaderInterface
|
|||
$this->clearCache($package, $path);
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return $fileName;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue