diff --git a/doc/05-repositories.md b/doc/05-repositories.md index c7e1f34d5..2cd0af19b 100644 --- a/doc/05-repositories.md +++ b/doc/05-repositories.md @@ -235,7 +235,6 @@ Example: * BasePackage, requires nothing * IntermediatePackage, depends on BasePackage * TopLevelPackage1 and TopLevelPackage2 both dependth on IntermediatePackage. - For composer it looks like: * "pear-pear.foobar.repo/IntermediatePackage" depends on "pear-pear.foobar.repo/BasePackage", * "pear-pear.foobar.repo/TopLevelPackage1" depends on "pear-pear.foobar.repo/IntermediatePackage", @@ -243,10 +242,10 @@ Example: When you update one of your packages to composer naming scheme or made it available through vcs your older dependencies would not see new version cause it would be named like "foobar/IntermediatePackage". - Specifying 'vendor-alias' for pear repository you will get all its packages aliased with composer-like names. Following example would take BasePackage, TopLevelPackage1 and TopLevelPackage2 packages from pear repository and IntermediatePackage from github repository: + { "repositories": [ { @@ -265,7 +264,6 @@ Example: } } - ### Package If you want to use a project that does not support composer through any of the diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index 2c3facad7..4518a7cff 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -99,10 +99,9 @@ class LibraryInstaller implements InstallerInterface } $this->initializeVendorDir(); - $downloadPath = $this->getInstallPath($initial); $this->removeBinaries($initial); - $this->updateCode($initial, $target, $downloadPath); + $this->updateCode($initial, $target); $this->installBinaries($target); $repo->removePackage($initial); if (!$repo->hasPackage($target)) {