Skip to content

Commit

Permalink
Fix to act on the root package
Browse files Browse the repository at this point in the history
  • Loading branch information
RobLoach committed Aug 31, 2013
1 parent 8314f2e commit aa7afbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ComponentInstaller/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public function supports($packageType)
$rootPackage = isset($this->composer) ? $this->composer->getPackage() : null;
if (isset($rootPackage)) {
// Ensure we get the root package rather than its alias.
while ($package instanceof AliasPackage) {
$package = $package->getAliasOf();
while ($rootPackage instanceof AliasPackage) {
$rootPackage = $rootPackage->getAliasOf();
}

// Make sure the root package can override the available scripts.
Expand Down

0 comments on commit aa7afbd

Please sign in to comment.