PoolBuilder: Move merging of constaints to be loaded into relevant section
parent
b2670945bd
commit
7b990f3767
|
@ -265,6 +265,9 @@ class PoolBuilder
|
|||
$constraint = $rootRequires[$name];
|
||||
}
|
||||
|
||||
// Not yet loaded or already marked for a reload, override the existing constraint
|
||||
// (either it's a new one to load, or it has already been extended above)
|
||||
if (!isset($this->loadedPackages[$name])) {
|
||||
// Maybe it was already marked before but not loaded yet. In that case
|
||||
// we have to extend the constraint (we don't check if they are identical because
|
||||
// MultiConstraint::create() will optimize anyway)
|
||||
|
@ -278,9 +281,6 @@ class PoolBuilder
|
|||
$constraint = Intervals::compactConstraint(MultiConstraint::create(array($this->packagesToLoad[$name], $constraint), false));
|
||||
}
|
||||
|
||||
// Not yet loaded or already marked for a reload, override the existing constraint
|
||||
// (either it's a new one to load, or it has already been extended above)
|
||||
if (!isset($this->loadedPackages[$name])) {
|
||||
$this->packagesToLoad[$name] = $constraint;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue