1
0
Fork 0

Pass a VCS filtered iterator to mirror

pull/6651/merge
Gawain Lynch 2017-09-08 06:35:36 +02:00 committed by Jordi Boggiano
parent 2a89d37651
commit b859bbcdcf
1 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@
namespace Composer\Downloader;
use Composer\Package\Archiver\ArchivableFilesFinder;
use Composer\Package\Dumper\ArrayDumper;
use Composer\Package\PackageInterface;
use Composer\Package\Version\VersionGuesser;
@ -119,7 +120,8 @@ class PathDownloader extends FileDownloader implements VcsCapableDownloaderInter
// Fallback if symlink failed or if symlink is not allowed for the package
if (self::STRATEGY_MIRROR == $currentStrategy) {
$this->io->writeError(sprintf('%sMirroring from %s', $isFallback ? ' ' : '', $url), false);
$fileSystem->mirror($realUrl, $path);
$iterator = new ArchivableFilesFinder($realUrl, array());
$fileSystem->mirror($realUrl, $path, $iterator);
}
$this->io->writeError('');