Przeglądaj źródła

Clone added packages in update

Jordi Boggiano 13 lat temu
rodzic
commit
b667cf98c2
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
     }
 
     /**