From e67030076a135bb9e1c1f1201441128c581b307e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 28 Nov 2018 09:36:05 +0100 Subject: [PATCH] Fix show command --- src/Composer/Command/ShowCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index 1dc5876a8..9604bdc71 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -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)) {