Преглед на файлове

Merge pull request #558 from stloyd/patch-1

[PharDownloader] Force overwrite if previous extract failed and was not ...
Jordi Boggiano преди 13 години
родител
ревизия
858d967a42
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Composer/Downloader/PharDownloader.php

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

@@ -28,7 +28,7 @@ class PharDownloader extends ArchiveDownloader
     {
         // Can throw an UnexpectedValueException
         $archive = new \Phar($file);
-        $archive->extractTo($path);
+        $archive->extractTo($path, null, true);
         /* TODO: handle openssl signed phars
          * https://github.com/composer/composer/pull/33#issuecomment-2250768
          * https://github.com/koto/phar-util