1
0
Fork 0

Take the short cut

pull/11449/head
Yanick Witschi 2023-05-02 23:11:20 +02:00
parent f9944867c3
commit 9ced20fd0d
1 changed files with 4 additions and 2 deletions

View File

@ -662,8 +662,10 @@ class PoolBuilder
foreach ($lockedPackage->getReplaces() as $replace) { foreach ($lockedPackage->getReplaces() as $replace) {
if (isset($requires[$replace->getTarget()], $this->skippedLoad[$replace->getTarget()])) { if (isset($requires[$replace->getTarget()], $this->skippedLoad[$replace->getTarget()])) {
$this->unlockPackage($request, $repositories, $replace->getTarget()); $this->unlockPackage($request, $repositories, $replace->getTarget());
// Mark as optional - if no other package requires it, we don't need to load it // Do not call markPackageNameForOptionalLoading() here, we know that $lockedPackage is already
$this->markPackageNameForOptionalLoading($replace->getTarget()); // part of $this->packages, and we check for $requires[$replace->getTarget()] so we're guaranteed
// to require this package.
$this->markPackageNameForLoading($request, $replace->getTarget(), $replace->getConstraint());
} }
} }
} }