1
0
Fork 0

Fixed last remaining pool builder test

pull/8850/head
Yanick Witschi 2020-05-07 22:25:42 +02:00 committed by Jordi Boggiano
parent 5097ed6480
commit 014e9d5dd1
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 3 deletions

View File

@ -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