|
|
@ -34,8 +34,14 @@ abstract class ArchiveDownloader extends FileDownloader
|
|
|
|
if ($this->io->isVerbose()) {
|
|
|
|
if ($this->io->isVerbose()) {
|
|
|
|
$this->io->write(' Unpacking archive');
|
|
|
|
$this->io->write(' Unpacking archive');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
$this->extract($fileName, $path);
|
|
|
|
$this->extract($fileName, $path);
|
|
|
|
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
|
|
|
// remove cache if the file was corrupted
|
|
|
|
|
|
|
|
parent::clearCache($package, $path);
|
|
|
|
|
|
|
|
throw $e;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($this->io->isVerbose()) {
|
|
|
|
if ($this->io->isVerbose()) {
|
|
|
|
$this->io->write(' Cleaning up');
|
|
|
|
$this->io->write(' Cleaning up');
|
|
|
|