1
0
Fork 0

PoolBuilder: Avoid loading any alternatives to fixed packages

pull/8850/head
Nils Adermann 2020-04-29 22:56:29 +02:00 committed by Jordi Boggiano
parent 208a735645
commit bb4cabc0b9
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ class PoolBuilder
$loadNames = array(); $loadNames = array();
foreach ($request->getFixedPackages() as $package) { foreach ($request->getFixedPackages() as $package) {
$this->loadedNames[$package->getName()] = new Constraint('==', $package->getVersion()); $this->loadedNames[$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) {