Fix error on check exclude from download composer.json
parent
80499bb024
commit
a300e1d45b
|
@ -144,10 +144,12 @@ class ArchiveManager
|
||||||
$this->downloadManager->download($package, $sourcePath);
|
$this->downloadManager->download($package, $sourcePath);
|
||||||
|
|
||||||
// Check exclude from downloaded composer.json
|
// Check exclude from downloaded composer.json
|
||||||
$jsonFile = new JsonFile($sourcePath.'/composer.json');
|
if (file_exists($composerJsonPath = $sourcePath.'/composer.json')) {
|
||||||
$jsonData = $jsonFile->read();
|
$jsonFile = new JsonFile($composerJsonPath);
|
||||||
if (!empty($jsonData['archive']['exclude'])) {
|
$jsonData = $jsonFile->read();
|
||||||
$package->setArchiveExcludes($jsonData['archive']['exclude']);
|
if (!empty($jsonData['archive']['exclude'])) {
|
||||||
|
$package->setArchiveExcludes($jsonData['archive']['exclude']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue