1
0
Fork 0

Packages can't be added to two repos at once

pull/22/merge
Jordi Boggiano 2011-09-25 23:43:21 +02:00
parent e5907a3431
commit 544067ced9
2 changed files with 6 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class LibraryInstaller implements InstallerInterface
$downloadPath = $this->directory.DIRECTORY_SEPARATOR.$package->getName();
$this->downloadManager->download($package, $downloadPath);
$this->repository->addPackage($package);
$this->repository->addPackage(clone $package);
}
/**

View File

@ -153,4 +153,9 @@ abstract class BasePackage implements PackageInterface
{
return $this->getUniqueName();
}
public function __clone()
{
$this->repository = null;
}
}