mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Skip notification about matches found in case we have an exact match, refs #3261
This commit is contained in:
parent
d4062a5594
commit
df7c8915fa
1 changed files with 6 additions and 6 deletions
|
@ -336,12 +336,6 @@ EOT
|
|||
$matches = $this->findPackages($package);
|
||||
|
||||
if (count($matches)) {
|
||||
$output->writeln(array(
|
||||
'',
|
||||
sprintf('Found <info>%s</info> packages matching <info>%s</info>', count($matches), $package),
|
||||
''
|
||||
));
|
||||
|
||||
$exactMatch = null;
|
||||
$choices = array();
|
||||
foreach ($matches as $position => $foundPackage) {
|
||||
|
@ -354,6 +348,12 @@ EOT
|
|||
|
||||
// no match, prompt which to pick
|
||||
if (!$exactMatch) {
|
||||
$output->writeln(array(
|
||||
'',
|
||||
sprintf('Found <info>%s</info> packages matching <info>%s</info>', count($matches), $package),
|
||||
''
|
||||
));
|
||||
|
||||
$output->writeln($choices);
|
||||
$output->writeln('');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue