Fixed last remaining pool builder test
parent
5097ed6480
commit
014e9d5dd1
|
@ -124,12 +124,13 @@ class PoolBuilder
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($request->getFixedPackages() as $package) {
|
foreach ($request->getFixedPackages() as $package) {
|
||||||
$this->loadedPackages[$package->getName()] = new Constraint('==', $package->getVersion());
|
// using EmptyConstraint here because fixed packages do not need to retrigger
|
||||||
|
// loading any packages
|
||||||
|
$this->loadedPackages[$package->getName()] = new EmptyConstraint();
|
||||||
|
|
||||||
// replace means conflict, so if a fixed package replaces a name, no need to load that one, packages would conflict anyways
|
// replace means conflict, so if a fixed package replaces a name, no need to load that one, packages would conflict anyways
|
||||||
foreach ($package->getReplaces() as $link) {
|
foreach ($package->getReplaces() as $link) {
|
||||||
$this->loadedPackages[$link->getTarget()] = $link->getConstraint();
|
$this->loadedPackages[$link->getTarget()] = new EmptyConstraint();
|
||||||
$this->skippedLoad[$link->getTarget()] = $package->getName();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO in how far can we do the above for conflicts? It's more tricky cause conflicts can be limited to
|
// TODO in how far can we do the above for conflicts? It's more tricky cause conflicts can be limited to
|
||||||
|
|
Loading…
Reference in New Issue