1
0
Fork 0

Merge pull request #2508 from simensen/plugin-manager-skips-alias-packages

Skip aliases packages when looking for plugins.
pull/2510/head
Nils Adermann 2013-12-16 06:34:19 -08:00
commit b63634396b
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@ use Composer\IO\IOInterface;
use Composer\Package\Package; use Composer\Package\Package;
use Composer\Package\Version\VersionParser; use Composer\Package\Version\VersionParser;
use Composer\Repository\RepositoryInterface; use Composer\Repository\RepositoryInterface;
use Composer\Package\AliasPackage;
use Composer\Package\PackageInterface; use Composer\Package\PackageInterface;
use Composer\Package\Link; use Composer\Package\Link;
use Composer\Package\LinkConstraint\VersionConstraint; use Composer\Package\LinkConstraint\VersionConstraint;
@ -95,6 +96,9 @@ class PluginManager
protected function loadRepository(RepositoryInterface $repo) protected function loadRepository(RepositoryInterface $repo)
{ {
foreach ($repo->getPackages() as $package) { foreach ($repo->getPackages() as $package) {
if ($package instanceof AliasPackage) {
continue;
}
if ('composer-plugin' === $package->getType()) { if ('composer-plugin' === $package->getType()) {
$requiresComposer = null; $requiresComposer = null;
foreach ($package->getRequires() as $link) { foreach ($package->getRequires() as $link) {