Sfoglia il codice sorgente

Clone added packages in update

Jordi Boggiano 13 anni fa
parent
commit
b667cf98c2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);
     }
 
     /**