diff --git a/src/Composer/Command/InstallCommand.php b/src/Composer/Command/InstallCommand.php index e96b29141..f5c8e9cca 100644 --- a/src/Composer/Command/InstallCommand.php +++ b/src/Composer/Command/InstallCommand.php @@ -97,7 +97,7 @@ EOT // TODO this belongs in the solver, but this will do for now to report top-level deps missing at least foreach ($request->getJobs() as $job) { if ('install' === $job['cmd']) { - foreach ($localRepo->getPackages() as $package) { + foreach ($installedRepo->getPackages() as $package) { if ($job['packageName'] === $package->getName()) { continue 2; }