ソースを参照

[TarDownloader] Force overwrite if previous extract failed and was not removed.

Joseph Bielawski 13 年 前
コミット
2e2f7ea199
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/Composer/Downloader/TarDownloader.php

+ 1 - 1
src/Composer/Downloader/TarDownloader.php

@@ -28,6 +28,6 @@ class TarDownloader extends ArchiveDownloader
     {
         // Can throw an UnexpectedValueException
         $archive = new \PharData($file);
-        $archive->extractTo($path);
+        $archive->extractTo($path, null, true);
     }
 }