1
0
Fork 0

Fix text spacing and remove excess getInstallPath call in LibraryInstaller::update

pull/831/head
Alexey Prilipko 2012-07-02 10:10:23 +11:00
parent 59773dd9f6
commit 9ba3deb91b
2 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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)) {