Use updateAll request method in upddate mode in install command
parent
3e1749fbad
commit
509188c112
|
@ -119,14 +119,9 @@ EOT
|
||||||
$installedPackages = $installedRepo->getPackages();
|
$installedPackages = $installedRepo->getPackages();
|
||||||
$links = $this->collectLinks($composer->getPackage(), $noInstallRecommends, $installSuggests);
|
$links = $this->collectLinks($composer->getPackage(), $noInstallRecommends, $installSuggests);
|
||||||
|
|
||||||
foreach ($links as $link) {
|
$request->updateAll();
|
||||||
foreach ($installedPackages as $package) {
|
|
||||||
if ($package->getName() === $link->getTarget()) {
|
|
||||||
$request->update($package->getName(), new VersionConstraint('=', $package->getVersion()));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
foreach ($links as $link) {
|
||||||
$request->install($link->getTarget(), $link->getConstraint());
|
$request->install($link->getTarget(), $link->getConstraint());
|
||||||
}
|
}
|
||||||
} elseif ($composer->getLocker()->isLocked()) {
|
} elseif ($composer->getLocker()->isLocked()) {
|
||||||
|
|
Loading…
Reference in New Issue