Browse Source

Pass a VCS filtered iterator to mirror

Gawain Lynch 7 years ago
parent
commit
b859bbcdcf
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/Composer/Downloader/PathDownloader.php

+ 3 - 1
src/Composer/Downloader/PathDownloader.php

@@ -12,6 +12,7 @@
 
 
 namespace Composer\Downloader;
 namespace Composer\Downloader;
 
 
+use Composer\Package\Archiver\ArchivableFilesFinder;
 use Composer\Package\Dumper\ArrayDumper;
 use Composer\Package\Dumper\ArrayDumper;
 use Composer\Package\PackageInterface;
 use Composer\Package\PackageInterface;
 use Composer\Package\Version\VersionGuesser;
 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
         // 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);
             $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('');
         $this->io->writeError('');