1
0
Fork 0

Fix show --locked to avoid listing all the things

pull/9286/head
Jordi Boggiano 2020-10-14 15:41:53 +02:00
parent da1357c663
commit e7d99c37b3
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 3 deletions

View File

@ -196,8 +196,7 @@ EOT
}
$locker = $composer->getLocker();
$lockedRepo = $locker->getLockedRepository(true);
$installedRepo = new InstalledRepository(array($lockedRepo));
$repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories()));
$repos = $installedRepo = new InstalledRepository(array($lockedRepo));
} else {
// --installed / default case
if (!$composer) {