1
0
Fork 0

Merge remote-tracking branch 'origin/1.6'

pull/7339/head
Jordi Boggiano 2018-07-23 19:41:08 +02:00
commit 2f69739c1a
1 changed files with 4 additions and 0 deletions

View File

@ -129,11 +129,15 @@ class ArtifactRepository extends ArrayRepository implements ConfigurableReposito
$zip->open($file->getPathname()); $zip->open($file->getPathname());
if (0 == $zip->numFiles) { if (0 == $zip->numFiles) {
$zip->close();
return false; return false;
} }
$foundFileIndex = $this->locateFile($zip, 'composer.json'); $foundFileIndex = $this->locateFile($zip, 'composer.json');
if (false === $foundFileIndex) { if (false === $foundFileIndex) {
$zip->close();
return false; return false;
} }