Browse Source

Clone added packages in update

Jordi Boggiano 13 years ago
parent
commit
b667cf98c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Installer/LibraryInstaller.php

+ 1 - 1
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);
     }
 
     /**