1
0
Fork 0

Merge pull request #3442 from SamMousa/master

Fixed issue #3441
pull/3447/head
Nils Adermann 2014-11-20 15:11:09 +01:00
commit 5edc0925cf
1 changed files with 3 additions and 3 deletions

View File

@ -123,7 +123,7 @@ class Pool
$package['id'] = $this->id++;
$package['stability'] = $stability;
$this->packages[] = $package;
$this->packageByExactName[$package->getName()][$package['id']] = $this->packages[$this->id - 2];
$this->packageByExactName[$name][$package['id']] = $this->packages[$this->id - 2];
foreach ($names as $provided) {
$this->packageByName[$provided][$package['id']] = $this->packages[$this->id - 2];
@ -146,7 +146,7 @@ class Pool
$alias['id'] = $this->id++;
$alias['root_alias'] = true;
$this->packages[] = $alias;
$this->packageByExactName[$package->getName()][$alias['id']] = $this->packages[$this->id - 2];
$this->packageByExactName[$name][$alias['id']] = $this->packages[$this->id - 2];
foreach ($names as $provided) {
$this->packageByName[$provided][$alias['id']] = $this->packages[$this->id - 2];
@ -162,7 +162,7 @@ class Pool
$alias['alias_of'] = $package['id'];
$alias['id'] = $this->id++;
$this->packages[] = $alias;
$this->packageByExactName[$package->getName()][$alias['id']] = $this->packages[$this->id - 2];
$this->packageByExactName[$name][$alias['id']] = $this->packages[$this->id - 2];
foreach ($names as $provided) {
$this->packageByName[$provided][$alias['id']] = $this->packages[$this->id - 2];