1
0
Fork 0

Merge pull request #1655 from miklosm/iss1653

Fix for #1653
pull/1658/merge
Jordi Boggiano 2013-03-04 08:24:25 -08:00
commit 0535473c6b
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ EOT
$output->writeln('No composer.json found in the current directory, showing available packages from ' . implode(', ', array_keys($defaultRepos))); $output->writeln('No composer.json found in the current directory, showing available packages from ' . implode(', ', array_keys($defaultRepos)));
} }
} elseif ($composer = $this->getComposer(false)) { } elseif ($composer = $this->getComposer(false)) {
$localRepo = $composer = $this->getComposer()->getRepositoryManager()->getLocalRepository(); $composer = $this->getComposer();
$localRepo = $composer->getRepositoryManager()->getLocalRepository();
$installedRepo = new CompositeRepository(array($localRepo, $platformRepo)); $installedRepo = new CompositeRepository(array($localRepo, $platformRepo));
$repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories())); $repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories()));
} else { } else {