1
0
Fork 0

Minor code cleanup

pull/9/head
Jordi Boggiano 2011-07-21 13:53:39 +02:00
parent b277b8e73c
commit 256955f0f7
1 changed files with 1 additions and 1 deletions

View File

@ -36,8 +36,8 @@ class Pool
$this->repositories[] = $repo; $this->repositories[] = $repo;
foreach ($repo->getPackages() as $package) { foreach ($repo->getPackages() as $package) {
$package->setId(count($this->packages));
$this->packages[] = $package; $this->packages[] = $package;
$package->setId(sizeof($this->packages) - 1);
foreach ($package->getNames() as $name) { foreach ($package->getNames() as $name) {
$this->packageByName[$name][] = $package; $this->packageByName[$name][] = $package;