add a hash to make sure CA file gets recreated if the content changes
parent
cef97904d0
commit
c232566e52
|
@ -639,7 +639,8 @@ class RemoteFilesystem
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match('{^phar://}', $result)) {
|
if (preg_match('{^phar://}', $result)) {
|
||||||
$targetPath = rtrim(sys_get_temp_dir(), '\\/') . '/composer-cacert.pem';
|
$hash = md5(file_get_contents($result));
|
||||||
|
$targetPath = rtrim(sys_get_temp_dir(), '\\/') . '/composer-cacert-' . $hash . '.pem';
|
||||||
|
|
||||||
if (!file_exists($targetPath)) {
|
if (!file_exists($targetPath)) {
|
||||||
// use stream_copy_to_stream instead of copy
|
// use stream_copy_to_stream instead of copy
|
||||||
|
|
Loading…
Reference in New Issue