소스 검색

[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);
     }
 }