1
0
Fork 0

Only create alias package in repositories on the fly if necessary, fixes #793

pull/860/head
Nils Adermann 2012-07-01 18:50:46 +02:00
parent 9346d4a501
commit 4eb5f73718
1 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,10 @@ class ArrayRepository implements RepositoryInterface
// create alias package on the fly if needed
if ($package->getAlias()) {
$this->addPackage($this->createAliasPackage($package));
$alias = $this->createAliasPackage($package);
if (!$this->hasPackage($alias)) {
$this->addPackage($alias);
}
}
}