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)) {