|
|
@ -578,8 +578,8 @@ EOT
|
|
|
|
|
|
|
|
|
|
|
|
$matchedPackage = null;
|
|
|
|
$matchedPackage = null;
|
|
|
|
$versions = array();
|
|
|
|
$versions = array();
|
|
|
|
$matches = $repositorySet->findPackages($name, $constraint);
|
|
|
|
|
|
|
|
$pool = $repositorySet->createPoolForPackage($name);
|
|
|
|
$pool = $repositorySet->createPoolForPackage($name);
|
|
|
|
|
|
|
|
$matches = $pool->whatProvides($name, $constraint);
|
|
|
|
foreach ($matches as $index => $package) {
|
|
|
|
foreach ($matches as $index => $package) {
|
|
|
|
// select an exact match if it is in the installed repo and no specific version was required
|
|
|
|
// select an exact match if it is in the installed repo and no specific version was required
|
|
|
|
if (null === $version && $installedRepo->hasPackage($package)) {
|
|
|
|
if (null === $version && $installedRepo->hasPackage($package)) {
|
|
|
|