1
0
Fork 0

Used locked repo only if it is present

pull/9122/head
Jordi Boggiano 2020-08-12 11:11:20 +02:00
parent c0eb9834fe
commit 826db3db5e
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ class Installer
$this->io->writeError('<info>Updating dependencies</info>'); $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 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) { if ($this->updateMirrors && $lockedRepository) {
foreach ($lockedRepository->getPackages() as $lockedPackage) { foreach ($lockedRepository->getPackages() as $lockedPackage) {
$request->requireName($lockedPackage->getName(), new Constraint('==', $lockedPackage->getVersion())); $request->requireName($lockedPackage->getName(), new Constraint('==', $lockedPackage->getVersion()));
} }