|
|
@ -71,8 +71,6 @@ class NoopInstaller implements InstallerInterface
|
|
|
|
public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
|
|
|
|
public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!$repo->hasPackage($package)) {
|
|
|
|
if (!$repo->hasPackage($package)) {
|
|
|
|
// TODO throw exception again here, when update is fixed and we don't have to remove+install (see #125)
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
throw new \InvalidArgumentException('Package is not installed: '.$package);
|
|
|
|
throw new \InvalidArgumentException('Package is not installed: '.$package);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$repo->removePackage($package);
|
|
|
|
$repo->removePackage($package);
|
|
|
|