1
0
Fork 0

Output packages in archive command using getPrettyString

pull/1567/head
Nils Adermann 2013-03-28 12:00:10 +01:00
parent 43be72acb4
commit 14ee67bed4
1 changed files with 3 additions and 3 deletions

View File

@ -112,12 +112,12 @@ EOT
if (count($packages) > 1) { if (count($packages) > 1) {
$package = $packages[0]; $package = $packages[0];
$io->write('<info>Found multiple matches, selected '.$package.'.</info>'); $io->write('<info>Found multiple matches, selected '.$package->getPrettyString().'.</info>');
$io->write('Alternatives were '.implode(', ', $packages).'.'); $io->write('Alternatives were '.implode(', ', array_map(function ($p) { return $p->getPrettyString(); }, $packages)).'.');
$io->write('<comment>Please use a more specific constraint to pick a different package.</comment>'); $io->write('<comment>Please use a more specific constraint to pick a different package.</comment>');
} elseif ($packages) { } elseif ($packages) {
$package = $packages[0]; $package = $packages[0];
$io->write('<info>Found an exact match '.$package.'.</info>'); $io->write('<info>Found an exact match '.$package->getPrettyString().'.</info>');
} else { } else {
$io->write('<error>Could not find a package matching '.$packageName.'.</error>'); $io->write('<error>Could not find a package matching '.$packageName.'.</error>');
return false; return false;