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

main
Alexey Prilipko 12 years ago
parent 59773dd9f6
commit 9ba3deb91b

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

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

Loading…
Cancel
Save