1
0
Fork 0

Extract archives into vendor dir to avoid permission errors, fixes #1765, fixes #1714

pull/1978/merge
Jordi Boggiano 2013-06-18 16:51:02 +02:00
parent ca69917969
commit 27d958a1de
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ abstract class ArchiveDownloader extends FileDownloader
$this->io->write(' Extracting archive');
}
$temporaryDir = sys_get_temp_dir().'/cmp'.substr(md5(time().mt_rand()), 0, 5);
$temporaryDir = $this->config->get('vendor-dir').'/composer/'.substr(md5(uniqid('', true)), 0, 8);
try {
$this->filesystem->ensureDirectoryExists($temporaryDir);
try {