1
0
Fork 0
pull/8850/head
Yanick Witschi 2020-04-28 16:21:48 +02:00 committed by Jordi Boggiano
parent 10555ecff3
commit 1c8865a5d1
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 3 additions and 0 deletions

View File

@ -294,6 +294,9 @@ class PoolBuilder
$this->io->writeError('<warning>Dependency "'.$require.'" is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies to include root dependencies.</warning>'); $this->io->writeError('<warning>Dependency "'.$require.'" is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies to include root dependencies.</warning>');
} }
} else { } else {
// Check if packages we already loaded match the constraint and if they don't
// extend the constraint and mark that package as not being loaded yet
// so we get the required package versions
if (!$this->loadedNames[$require]->matches($linkConstraint)) { if (!$this->loadedNames[$require]->matches($linkConstraint)) {
$loadNames[$require] = MultiConstraint::create(array($this->loadedNames[$require], $linkConstraint), false); $loadNames[$require] = MultiConstraint::create(array($this->loadedNames[$require], $linkConstraint), false);
unset($this->loadedNames[$require]); unset($this->loadedNames[$require]);