1
0
Fork 0

Prevent multiple replaces of a same package to be skipped when the first fails to match

pull/369/head
Jordi Boggiano 2012-02-26 22:21:32 +01:00
parent c425b8b6cb
commit 35aa82ada8
1 changed files with 4 additions and 4 deletions

View File

@ -118,14 +118,14 @@ abstract class BasePackage implements PackageInterface
} }
foreach ($this->getProvides() as $link) { foreach ($this->getProvides() as $link) {
if ($link->getTarget() === $name) { if ($link->getTarget() === $name && $constraint->matches($link->getConstraint())) {
return $constraint->matches($link->getConstraint()); return true;
} }
} }
foreach ($this->getReplaces() as $link) { foreach ($this->getReplaces() as $link) {
if ($link->getTarget() === $name) { if ($link->getTarget() === $name && $constraint->matches($link->getConstraint())) {
return $constraint->matches($link->getConstraint()); return true;
} }
} }