1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +00:00
This commit is contained in:
Jordi Boggiano 2011-12-22 10:07:39 +01:00
parent 2c367e7f39
commit 3b9dd59da3

View file

@ -86,7 +86,7 @@ EOT
);
foreach ($repos as $repository) {
foreach ($repository->getPackages() as $package) {
if ($packageName === $package->getName()) {
if ($package->getName() === $input->getArgument('package')) {
if (null === $highestVersion || version_compare($package->getVersion(), $highestVersion->getVersion(), '>=')) {
$highestVersion = $package;
}