Use pool to match packages to avoid getting packages without ids, fixes #9094
parent
826db3db5e
commit
ff757e649c
|
@ -578,8 +578,8 @@ EOT
|
|||
|
||||
$matchedPackage = null;
|
||||
$versions = array();
|
||||
$matches = $repositorySet->findPackages($name, $constraint);
|
||||
$pool = $repositorySet->createPoolForPackage($name);
|
||||
$matches = $pool->whatProvides($name, $constraint);
|
||||
foreach ($matches as $index => $package) {
|
||||
// select an exact match if it is in the installed repo and no specific version was required
|
||||
if (null === $version && $installedRepo->hasPackage($package)) {
|
||||
|
|
Loading…
Reference in New Issue