1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Fix project aliases being redownloaded since they had no version

This commit is contained in:
Jordi Boggiano 2012-04-10 11:55:34 +02:00
parent 983de81b1d
commit 9da7fbbf37
3 changed files with 11 additions and 4 deletions

View file

@ -102,9 +102,9 @@ class ArrayRepository implements RepositoryInterface
}
}
protected function createAliasPackage(PackageInterface $package)
protected function createAliasPackage(PackageInterface $package, $alias = null, $prettyAlias = null)
{
return new AliasPackage($package, $package->getAlias(), $package->getPrettyAlias());
return new AliasPackage($package, $alias ?: $package->getAlias(), $prettyAlias ?: $package->getPrettyAlias());
}
/**