@ -81,7 +81,7 @@ class PathDownloader extends FileDownloader implements VcsCapableDownloaderInter
if ($output) {
if ($output) {
$this->io->writeError(sprintf(
$this->io->writeError(sprintf(
' - Installing < info > %s< / info > (< comment > %s< / comment > )',
' - Installing < info > %s< / info > (< comment > %s< / comment > ): ',
$package->getName(),
$package->getName(),
$package->getFullPrettyVersion()
$package->getFullPrettyVersion()
), false);
), false);
@ -92,8 +92,8 @@ class PathDownloader extends FileDownloader implements VcsCapableDownloaderInter
try {
try {
if (Platform::isWindows()) {
if (Platform::isWindows()) {
// Implement symlinks as NTFS junctions on Windows
// Implement symlinks as NTFS junctions on Windows
$this->io->writeError(sprintf('Junctioning from %s', $url), false);
$this->filesystem->junction($realUrl, $path);
$this->filesystem->junction($realUrl, $path);
$this->io->writeError(sprintf(' Junctioned from %s', $url), false);
} else {
} else {
$absolutePath = $path;
$absolutePath = $path;
if (!$this->filesystem->isAbsolutePath($absolutePath)) {
if (!$this->filesystem->isAbsolutePath($absolutePath)) {
@ -101,8 +101,8 @@ class PathDownloader extends FileDownloader implements VcsCapableDownloaderInter
}
}
$shortestPath = $this->filesystem->findShortestPath($absolutePath, $realUrl);
$shortestPath = $this->filesystem->findShortestPath($absolutePath, $realUrl);
$path = rtrim($path, "/");
$path = rtrim($path, "/");
$this->io->writeError(sprintf('Symlinking from %s', $url), false);
$fileSystem->symlink($shortestPath, $path);
$fileSystem->symlink($shortestPath, $path);
$this->io->writeError(sprintf(' Symlinked from %s', $url), false);
}
}
} catch (IOException $e) {
} catch (IOException $e) {
if (in_array(self::STRATEGY_MIRROR, $allowedStrategies)) {
if (in_array(self::STRATEGY_MIRROR, $allowedStrategies)) {
@ -118,8 +118,8 @@ class PathDownloader extends FileDownloader implements VcsCapableDownloaderInter
// Fallback if symlink failed or if symlink is not allowed for the package
// Fallback if symlink failed or if symlink is not allowed for the package
if (self::STRATEGY_MIRROR == $currentStrategy) {
if (self::STRATEGY_MIRROR == $currentStrategy) {
$this->io->writeError(sprintf('%sMirroring from %s', $isFallback ? ' ' : '', $url), false);
$fileSystem->mirror($realUrl, $path);
$fileSystem->mirror($realUrl, $path);
$this->io->writeError(sprintf('%s Mirrored from %s', $isFallback ? ' ' : '', $url), false);
}
}
$this->io->writeError('');
$this->io->writeError('');
@ -144,7 +144,7 @@ class PathDownloader extends FileDownloader implements VcsCapableDownloaderInter
throw new \RuntimeException('Could not reliably remove junction for package ' . $package->getName());
throw new \RuntimeException('Could not reliably remove junction for package ' . $package->getName());
}
}
} else {
} else {
parent::remove($package, $path);
parent::remove($package, $path, $output );
}
}
}
}