From b667cf98c267b055e28d5244757c279a57c4fca8 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 22 Oct 2011 22:40:03 +0200 Subject: [PATCH] Clone added packages in update --- src/Composer/Installer/LibraryInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index 7f5b967be..332e8e8b6 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -100,7 +100,7 @@ class LibraryInstaller implements InstallerInterface $this->downloadManager->update($initial, $target, $downloadPath); $this->repository->removePackage($initial); - $this->repository->addPackage($target); + $this->repository->addPackage(clone $target); } /**