1
0
Fork 0

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

pull/558/head
Joseph Bielawski 2012-04-10 13:42:47 +03:00
parent 9da7fbbf37
commit eab3cde48c
1 changed files with 1 additions and 1 deletions

View File

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