1
0
Fork 0

Adjust operation output, fixes #166

pull/167/merge
Jordi Boggiano 2011-12-21 15:57:39 +01:00
parent 812bf9a2af
commit c921a8884e
3 changed files with 4 additions and 3 deletions

View File

@ -61,6 +61,6 @@ class InstallOperation extends SolverOperation
*/ */
public function __toString() public function __toString()
{ {
return 'Installing '.$this->package; return 'Installing '.$this->package->getPrettyName().' ('.$this->package->getPrettyVersion().')';
} }
} }

View File

@ -61,6 +61,6 @@ class UninstallOperation extends SolverOperation
*/ */
public function __toString() public function __toString()
{ {
return 'Uninstalling '.$this->package; return 'Uninstalling '.$this->package->getPrettyName().' ('.$this->package->getPrettyVersion().')';
} }
} }

View File

@ -74,6 +74,7 @@ class UpdateOperation extends SolverOperation
*/ */
public function __toString() public function __toString()
{ {
return 'Updating '.$this->initialPackage.' to '.$this->targetPackage; return 'Updating '.$this->initialPackage->getPrettyName().' ('.$this->initialPackage->getPrettyVersion().') to '.
$this->targetPackage->getPrettyName(). '('.$this->targetPackage->getPrettyVersion().')';
} }
} }