summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2003-09-04 22:21:33 +0000
committerGreg Beaver <cellog@php.net>2003-09-04 22:21:33 +0000
commit8a70f5c01cac68cd98fc071bfc1d779f7033df4c (patch)
tree396a80be7602a105a5436ce5bcdf814a707e1267
parent54405317f418d71478d2cf06bfd580cf87ad6976 (diff)
downloadphp-git-8a70f5c01cac68cd98fc071bfc1d779f7033df4c.tar.gz
fix bug in --force on windows
-rw-r--r--pear/PEAR/Installer.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php
index d15898ed62..20624be2be 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;