Move Updating dependencies to the correct point, which is once we have the pool ready

main
Jordi Boggiano 4 years ago
parent fec44f883c
commit 30b98915e9
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -386,8 +386,6 @@ class Installer
$request = $this->createRequest($this->fixedRootPackage, $platformRepo, $lockedRepository);
$this->io->writeError('<info>Updating dependencies</info>');
// if we're updating mirrors we want to keep exactly the same versions installed which are in the lock file, but we want current remote metadata
if ($this->updateMirrors && $lockedRepository) {
foreach ($lockedRepository->getPackages() as $lockedPackage) {
@ -411,6 +409,8 @@ class Installer
$pool = $repositorySet->createPool($request, $this->io, $this->eventDispatcher);
$this->io->writeError('<info>Updating dependencies</info>');
// solve dependencies
$solver = new Solver($policy, $pool, $this->io);
try {

Loading…
Cancel
Save