1
0
Fork 0

Ensure aliases are removed from local repos when a package is deleted from the filesystem

pull/812/head
Jordi Boggiano 2012-06-20 11:45:55 +02:00
parent 4bbb168d44
commit a518f471f7
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class InstallationManager
public function isPackageInstalled(InstalledRepositoryInterface $repo, PackageInterface $package) public function isPackageInstalled(InstalledRepositoryInterface $repo, PackageInterface $package)
{ {
if ($package instanceof AliasPackage) { if ($package instanceof AliasPackage) {
return $repo->hasPackage($package); return $repo->hasPackage($package) && $this->isPackageInstalled($repo, $package->getAliasOf());
} }
return $this->getInstaller($package->getType())->isInstalled($repo, $package); return $this->getInstaller($package->getType())->isInstalled($repo, $package);