1
0
Fork 0

Use updateAll request method in upddate mode in install command

pull/328/head
Nils Adermann 2012-02-19 17:14:11 +01:00
parent 3e1749fbad
commit 509188c112
1 changed files with 2 additions and 7 deletions

View File

@ -119,14 +119,9 @@ EOT
$installedPackages = $installedRepo->getPackages();
$links = $this->collectLinks($composer->getPackage(), $noInstallRecommends, $installSuggests);
foreach ($links as $link) {
foreach ($installedPackages as $package) {
if ($package->getName() === $link->getTarget()) {
$request->update($package->getName(), new VersionConstraint('=', $package->getVersion()));
break;
}
}
$request->updateAll();
foreach ($links as $link) {
$request->install($link->getTarget(), $link->getConstraint());
}
} elseif ($composer->getLocker()->isLocked()) {