From 03db848b23be3ac71a2874de92d013e6fad1a97e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9A=D1=83=D1=80=D0=B0?= =?UTF-8?q?=D0=BF=D0=BE=D0=B2?= Date: Sun, 5 Aug 2012 03:26:06 +0300 Subject: [PATCH] Update src/Composer/Downloader/ArchiveDownloader.php Fixed single-file archive post-extraction moving --- src/Composer/Downloader/ArchiveDownloader.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Composer/Downloader/ArchiveDownloader.php b/src/Composer/Downloader/ArchiveDownloader.php index 3bafc4e8c..e28788633 100644 --- a/src/Composer/Downloader/ArchiveDownloader.php +++ b/src/Composer/Downloader/ArchiveDownloader.php @@ -48,8 +48,7 @@ abstract class ArchiveDownloader extends FileDownloader $contentDir = $contentDir[0]; if(is_file($contentDir)){ - rename($contentDir, $path . '/' . basename($fileName)); - unlink($contentDir); + rename($contentDir, $path . '/' . basename($contentDir)); } else{