Skip notification about matches found in case we have an exact match, refs #3261
parent
d4062a5594
commit
df7c8915fa
|
@ -336,12 +336,6 @@ EOT
|
||||||
$matches = $this->findPackages($package);
|
$matches = $this->findPackages($package);
|
||||||
|
|
||||||
if (count($matches)) {
|
if (count($matches)) {
|
||||||
$output->writeln(array(
|
|
||||||
'',
|
|
||||||
sprintf('Found <info>%s</info> packages matching <info>%s</info>', count($matches), $package),
|
|
||||||
''
|
|
||||||
));
|
|
||||||
|
|
||||||
$exactMatch = null;
|
$exactMatch = null;
|
||||||
$choices = array();
|
$choices = array();
|
||||||
foreach ($matches as $position => $foundPackage) {
|
foreach ($matches as $position => $foundPackage) {
|
||||||
|
@ -354,6 +348,12 @@ EOT
|
||||||
|
|
||||||
// no match, prompt which to pick
|
// no match, prompt which to pick
|
||||||
if (!$exactMatch) {
|
if (!$exactMatch) {
|
||||||
|
$output->writeln(array(
|
||||||
|
'',
|
||||||
|
sprintf('Found <info>%s</info> packages matching <info>%s</info>', count($matches), $package),
|
||||||
|
''
|
||||||
|
));
|
||||||
|
|
||||||
$output->writeln($choices);
|
$output->writeln($choices);
|
||||||
$output->writeln('');
|
$output->writeln('');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue