Fix regression handling installs with custom installers not passing a fully qualified path to downloaders, fixes #9431, fixes #9434

main
Jordi Boggiano 4 years ago
parent 3e9cb5eabe
commit c362d001f1
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -63,7 +63,7 @@ abstract class ArchiveDownloader extends FileDownloader
// avoid cleaning up $path if installing in "." for eg create-project as we can not // avoid cleaning up $path if installing in "." for eg create-project as we can not
// delete the directory we are currently in on windows // delete the directory we are currently in on windows
if (!is_dir($path) || realpath($path) !== getcwd()) { if (!is_dir($path) || realpath($path) !== getcwd()) {
$this->addCleanupPath($package, realpath($path)); $this->addCleanupPath($package, $path);
} }
$this->filesystem->ensureDirectoryExists($temporaryDir); $this->filesystem->ensureDirectoryExists($temporaryDir);

Loading…
Cancel
Save