From 4e99eccb30dfe26153b31d5f03809261333b22be Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 27 Aug 2021 15:12:48 +0200 Subject: [PATCH] Install metarecipes first --- src/Flex.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Flex.php b/src/Flex.php index b008e1d68..e4c25ddfe 100644 --- a/src/Flex.php +++ b/src/Flex.php @@ -744,7 +744,7 @@ public function fetchRecipes(array $operations): array 'symfony/flex' => null, 'symfony/framework-bundle' => null, ]; - $packRecipes = []; + $metaRecipes = []; foreach ($operations as $operation) { if ($operation instanceof UpdateOperation) { @@ -783,8 +783,8 @@ public function fetchRecipes(array $operations): array } if (isset($manifests[$name])) { - if ('symfony-pack' === $package->getType()) { - $packRecipes[$name] = new Recipe($package, $name, $job, $manifests[$name], $locks[$name] ?? []); + if ('metapackage' === $package->getType()) { + $metaRecipes[$name] = new Recipe($package, $name, $job, $manifests[$name], $locks[$name] ?? []); } else { $recipes[$name] = new Recipe($package, $name, $job, $manifests[$name], $locks[$name] ?? []); } @@ -813,7 +813,7 @@ public function fetchRecipes(array $operations): array } } - return array_merge($packRecipes, array_filter($recipes)); + return array_merge($metaRecipes, array_filter($recipes)); } public function truncatePackages(PrePoolCreateEvent $event)