1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +00:00

Fix show command

This commit is contained in:
Jordi Boggiano 2018-11-28 09:36:05 +01:00
parent ed65625126
commit e67030076a

View file

@ -553,7 +553,7 @@ EOT
$matches[$index] = $package->getId();
}
$pool = $repositorySet->createPool();
$pool = $repositorySet->createPoolForPackage($package->getName());
// select preferred package according to policy rules
if (!$matchedPackage && $matches && $preferred = $policy->selectPreferredPackages($pool, array(), $matches)) {