1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Show exact version being installed in create-project, fixes #724

This commit is contained in:
Jordi Boggiano 2012-05-22 15:48:23 +02:00
parent 16a51daac8
commit 713309b38c
3 changed files with 19 additions and 7 deletions

View file

@ -12,6 +12,7 @@
namespace Composer\DependencyResolver\Operation;
use Composer\Package\Version\VersionParser;
use Composer\Package\PackageInterface;
/**
@ -45,10 +46,6 @@ abstract class SolverOperation implements OperationInterface
protected function formatVersion(PackageInterface $package)
{
if (!$package->isDev() || !in_array($package->getSourceType(), array('hg', 'git'))) {
return $package->getPrettyVersion();
}
return $package->getPrettyVersion().' '.substr($package->getSourceReference(), 0, 6);
return VersionParser::formatVersion($package);
}
}