Skip to content

Commit 4e99ecc

Browse files
Install metarecipes first
1 parent ddddba0 commit 4e99ecc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Flex.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ public function fetchRecipes(array $operations): array
744744
'symfony/flex' => null,
745745
'symfony/framework-bundle' => null,
746746
];
747-
$packRecipes = [];
747+
$metaRecipes = [];
748748

749749
foreach ($operations as $operation) {
750750
if ($operation instanceof UpdateOperation) {
@@ -783,8 +783,8 @@ public function fetchRecipes(array $operations): array
783783
}
784784

785785
if (isset($manifests[$name])) {
786-
if ('symfony-pack' === $package->getType()) {
787-
$packRecipes[$name] = new Recipe($package, $name, $job, $manifests[$name], $locks[$name] ?? []);
786+
if ('metapackage' === $package->getType()) {
787+
$metaRecipes[$name] = new Recipe($package, $name, $job, $manifests[$name], $locks[$name] ?? []);
788788
} else {
789789
$recipes[$name] = new Recipe($package, $name, $job, $manifests[$name], $locks[$name] ?? []);
790790
}
@@ -813,7 +813,7 @@ public function fetchRecipes(array $operations): array
813813
}
814814
}
815815

816-
return array_merge($packRecipes, array_filter($recipes));
816+
return array_merge($metaRecipes, array_filter($recipes));
817817
}
818818

819819
public function truncatePackages(PrePoolCreateEvent $event)

0 commit comments

Comments
 (0)