[PharDownloader] Force overwrite if previous extract failed and was not removed.
parent
9da7fbbf37
commit
eab3cde48c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue