From 8a70f5c01cac68cd98fc071bfc1d779f7033df4c Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Thu, 4 Sep 2003 22:21:33 +0000 Subject: [PATCH] fix bug in --force on windows --- pear/PEAR/Installer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index d15898ed62f..20624be2be3 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -384,6 +384,7 @@ class PEAR_Installer extends PEAR_Common list($type, $data) = $tr; switch ($type) { case 'rename': + @unlink($data[1]); @rename($data[0], $data[1]); $this->log(3, "+ mv $data[0] $data[1]"); break;