1
0
Fork 0

Return path of the downloaded file

pull/1947/merge
Jordi Boggiano 2013-08-18 18:13:11 +02:00
parent d2ef829cc6
commit 30f94365f0
2 changed files with 3 additions and 2 deletions

View File

@ -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');
}

View File

@ -153,6 +153,8 @@ class FileDownloader implements DownloaderInterface
$this->clearCache($package, $path);
throw $e;
}
return $fileName;
}
/**